Browse Source

scripts: west_commands: simulate: 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
62ea066794
  1. 4
      .ruff-excludes.toml
  2. 4
      scripts/west_commands/simulate.py

4
.ruff-excludes.toml

@ -1117,10 +1117,6 @@ @@ -1117,10 +1117,6 @@
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters
"UP032", # https://docs.astral.sh/ruff/rules/f-string
]
"./scripts/west_commands/simulate.py" = [
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters
]
"./scripts/west_commands/spdx.py" = [
"F541", # https://docs.astral.sh/ruff/rules/f-string-missing-placeholders
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports

4
scripts/west_commands/simulate.py

@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
#
# SPDX-License-Identifier: Apache-2.0
from west.commands import WestCommand
from run_common import add_parser_common, do_run_common
from west.commands import WestCommand
EXPORT_DESCRIPTION = '''\
Simulate the board on a runner of choice using generated artifacts.
@ -13,7 +13,7 @@ Simulate the board on a runner of choice using generated artifacts. @@ -13,7 +13,7 @@ Simulate the board on a runner of choice using generated artifacts.
class Simulate(WestCommand):
def __init__(self):
super(Simulate, self).__init__(
super().__init__(
'simulate',
# Keep this in sync with the string in west-commands.yml.
'simulate board',

Loading…
Cancel
Save