scripts: west_commands: flash: Fix linter issues
Fix issues reported by ruff. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
5321c14628
commit
359a0c2809
2 changed files with 3 additions and 8 deletions
|
@ -1090,10 +1090,6 @@
|
|||
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
|
||||
"SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler
|
||||
]
|
||||
"./scripts/west_commands/flash.py" = [
|
||||
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
|
||||
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters
|
||||
]
|
||||
"./scripts/west_commands/robot.py" = [
|
||||
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
|
||||
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters
|
||||
|
|
|
@ -6,17 +6,16 @@
|
|||
|
||||
'''west "flash" command'''
|
||||
|
||||
from west.commands import WestCommand
|
||||
from pathlib import Path
|
||||
|
||||
from run_common import add_parser_common, do_run_common, get_build_dir
|
||||
|
||||
from pathlib import Path
|
||||
from west.commands import WestCommand
|
||||
|
||||
|
||||
class Flash(WestCommand):
|
||||
|
||||
def __init__(self):
|
||||
super(Flash, self).__init__(
|
||||
super().__init__(
|
||||
'flash',
|
||||
# Keep this in sync with the string in west-commands.yml.
|
||||
'flash and run a binary on a board',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue