Browse Source

scripts: west_commands: debug: Fix linter issues

Fix issues reported by ruff.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
pull/88314/merge
Pieter De Gendt 2 months ago committed by Anas Nashif
parent
commit
5321c14628
  1. 4
      .ruff-excludes.toml
  2. 11
      scripts/west_commands/debug.py

4
.ruff-excludes.toml

@ -1078,10 +1078,6 @@ @@ -1078,10 +1078,6 @@
"UP007", # https://docs.astral.sh/ruff/rules/non-pep604-annotation-union
"UP035", # https://docs.astral.sh/ruff/rules/deprecated-import
]
"./scripts/west_commands/debug.py" = [
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters
]
"./scripts/west_commands/fetchers/__init__.py" = [
"UP032", # https://docs.astral.sh/ruff/rules/f-string
]

11
scripts/west_commands/debug.py

@ -8,15 +8,14 @@ @@ -8,15 +8,14 @@
from textwrap import dedent
from west.commands import WestCommand
from run_common import add_parser_common, do_run_common
from west.commands import WestCommand
class Debug(WestCommand):
def __init__(self):
super(Debug, self).__init__(
super().__init__(
'debug',
# Keep this in sync with the string in west-commands.yml.
'flash and interactively debug a Zephyr application',
@ -37,7 +36,7 @@ class Debug(WestCommand): @@ -37,7 +36,7 @@ class Debug(WestCommand):
class DebugServer(WestCommand):
def __init__(self):
super(DebugServer, self).__init__(
super().__init__(
'debugserver',
# Keep this in sync with the string in west-commands.yml.
'connect to board and launch a debug server',
@ -61,7 +60,7 @@ class DebugServer(WestCommand): @@ -61,7 +60,7 @@ class DebugServer(WestCommand):
class Attach(WestCommand):
def __init__(self):
super(Attach, self).__init__(
super().__init__(
'attach',
# Keep this in sync with the string in west-commands.yml.
'interactively debug a board',
@ -79,7 +78,7 @@ class Attach(WestCommand): @@ -79,7 +78,7 @@ class Attach(WestCommand):
class Rtt(WestCommand):
def __init__(self):
super(Rtt, self).__init__(
super().__init__(
'rtt',
# Keep this in sync with the string in west-commands.yml.
'open an rtt shell',

Loading…
Cancel
Save