scripts: west_commands: debug: Fix linter issues
Fix issues reported by ruff. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
d9d4daa940
commit
5321c14628
2 changed files with 5 additions and 10 deletions
|
@ -1078,10 +1078,6 @@
|
||||||
"UP007", # https://docs.astral.sh/ruff/rules/non-pep604-annotation-union
|
"UP007", # https://docs.astral.sh/ruff/rules/non-pep604-annotation-union
|
||||||
"UP035", # https://docs.astral.sh/ruff/rules/deprecated-import
|
"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" = [
|
"./scripts/west_commands/fetchers/__init__.py" = [
|
||||||
"UP032", # https://docs.astral.sh/ruff/rules/f-string
|
"UP032", # https://docs.astral.sh/ruff/rules/f-string
|
||||||
]
|
]
|
||||||
|
|
|
@ -8,15 +8,14 @@
|
||||||
|
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
|
|
||||||
from west.commands import WestCommand
|
|
||||||
|
|
||||||
from run_common import add_parser_common, do_run_common
|
from run_common import add_parser_common, do_run_common
|
||||||
|
from west.commands import WestCommand
|
||||||
|
|
||||||
|
|
||||||
class Debug(WestCommand):
|
class Debug(WestCommand):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Debug, self).__init__(
|
super().__init__(
|
||||||
'debug',
|
'debug',
|
||||||
# Keep this in sync with the string in west-commands.yml.
|
# Keep this in sync with the string in west-commands.yml.
|
||||||
'flash and interactively debug a Zephyr application',
|
'flash and interactively debug a Zephyr application',
|
||||||
|
@ -37,7 +36,7 @@ class Debug(WestCommand):
|
||||||
class DebugServer(WestCommand):
|
class DebugServer(WestCommand):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(DebugServer, self).__init__(
|
super().__init__(
|
||||||
'debugserver',
|
'debugserver',
|
||||||
# Keep this in sync with the string in west-commands.yml.
|
# Keep this in sync with the string in west-commands.yml.
|
||||||
'connect to board and launch a debug server',
|
'connect to board and launch a debug server',
|
||||||
|
@ -61,7 +60,7 @@ class DebugServer(WestCommand):
|
||||||
class Attach(WestCommand):
|
class Attach(WestCommand):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Attach, self).__init__(
|
super().__init__(
|
||||||
'attach',
|
'attach',
|
||||||
# Keep this in sync with the string in west-commands.yml.
|
# Keep this in sync with the string in west-commands.yml.
|
||||||
'interactively debug a board',
|
'interactively debug a board',
|
||||||
|
@ -79,7 +78,7 @@ class Attach(WestCommand):
|
||||||
class Rtt(WestCommand):
|
class Rtt(WestCommand):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Rtt, self).__init__(
|
super().__init__(
|
||||||
'rtt',
|
'rtt',
|
||||||
# Keep this in sync with the string in west-commands.yml.
|
# Keep this in sync with the string in west-commands.yml.
|
||||||
'open an rtt shell',
|
'open an rtt shell',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue