Skip to content

Commit 72a75a5

Browse files
committed
scripts: west_commands: flash: Fix linter issues
Fix issues reported by ruff. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent c01bfa8 commit 72a75a5

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.ruff-excludes.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,10 +1101,6 @@
11011101
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
11021102
"SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler
11031103
]
1104-
"./scripts/west_commands/flash.py" = [
1105-
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
1106-
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters
1107-
]
11081104
"./scripts/west_commands/robot.py" = [
11091105
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
11101106
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters

scripts/west_commands/flash.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66

77
'''west "flash" command'''
88

9-
from west.commands import WestCommand
9+
from pathlib import Path
1010

1111
from run_common import add_parser_common, do_run_common, get_build_dir
12-
13-
from pathlib import Path
12+
from west.commands import WestCommand
1413

1514

1615
class Flash(WestCommand):
1716

1817
def __init__(self):
19-
super(Flash, self).__init__(
18+
super().__init__(
2019
'flash',
2120
# Keep this in sync with the string in west-commands.yml.
2221
'flash and run a binary on a board',

0 commit comments

Comments
 (0)