From 62ea066794660e15765c859322a0ecccc4a05288 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Sat, 24 May 2025 13:24:27 +0200 Subject: [PATCH] scripts: west_commands: simulate: Fix linter issues Fix issues reported by ruff. Signed-off-by: Pieter De Gendt --- .ruff-excludes.toml | 4 ---- scripts/west_commands/simulate.py | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) 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',