diff --git a/.ruff-excludes.toml b/.ruff-excludes.toml index 1a019c66510..04a6cad7681 100644 --- a/.ruff-excludes.toml +++ b/.ruff-excludes.toml @@ -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 diff --git a/scripts/west_commands/simulate.py b/scripts/west_commands/simulate.py index ad3d9073303..a189926472a 100644 --- a/scripts/west_commands/simulate.py +++ b/scripts/west_commands/simulate.py @@ -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. 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',