Skip to content

Commit 43c7651

Browse files
committed
scripts: west_commands: debug: Fix linter issues
Fix issues reported by ruff. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent a0b1cca commit 43c7651

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.ruff-excludes.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,10 +1073,6 @@
10731073
"UP007", # https://docs.astral.sh/ruff/rules/non-pep604-annotation
10741074
"UP035", # https://docs.astral.sh/ruff/rules/deprecated-import
10751075
]
1076-
"./scripts/west_commands/debug.py" = [
1077-
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
1078-
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters
1079-
]
10801076
"./scripts/west_commands/fetchers/__init__.py" = [
10811077
"UP032", # https://docs.astral.sh/ruff/rules/f-string
10821078
]

scripts/west_commands/debug.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88

99
from textwrap import dedent
1010

11-
from west.commands import WestCommand
12-
1311
from run_common import add_parser_common, do_run_common
12+
from west.commands import WestCommand
1413

1514

1615
class Debug(WestCommand):
1716

1817
def __init__(self):
19-
super(Debug, self).__init__(
18+
super().__init__(
2019
'debug',
2120
# Keep this in sync with the string in west-commands.yml.
2221
'flash and interactively debug a Zephyr application',
@@ -37,7 +36,7 @@ def do_run(self, my_args, runner_args):
3736
class DebugServer(WestCommand):
3837

3938
def __init__(self):
40-
super(DebugServer, self).__init__(
39+
super().__init__(
4140
'debugserver',
4241
# Keep this in sync with the string in west-commands.yml.
4342
'connect to board and launch a debug server',
@@ -61,7 +60,7 @@ def do_run(self, my_args, runner_args):
6160
class Attach(WestCommand):
6261

6362
def __init__(self):
64-
super(Attach, self).__init__(
63+
super().__init__(
6564
'attach',
6665
# Keep this in sync with the string in west-commands.yml.
6766
'interactively debug a board',
@@ -79,7 +78,7 @@ def do_run(self, my_args, runner_args):
7978
class Rtt(WestCommand):
8079

8180
def __init__(self):
82-
super(Rtt, self).__init__(
81+
super().__init__(
8382
'rtt',
8483
# Keep this in sync with the string in west-commands.yml.
8584
'open an rtt shell',

0 commit comments

Comments
 (0)