diff --git a/.ruff-excludes.toml b/.ruff-excludes.toml index aedb2c83613..1a019c66510 100644 --- a/.ruff-excludes.toml +++ b/.ruff-excludes.toml @@ -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/robot.py" = [ - "I001", # https://docs.astral.sh/ruff/rules/unsorted-imports - "UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters -] "./scripts/west_commands/run_common.py" = [ "B904", # https://docs.astral.sh/ruff/rules/raise-without-from-inside-except "B905", # https://docs.astral.sh/ruff/rules/zip-without-explicit-strict diff --git a/scripts/west_commands/robot.py b/scripts/west_commands/robot.py index fb5325afe94..a2efd2895ba 100644 --- a/scripts/west_commands/robot.py +++ b/scripts/west_commands/robot.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 = '''\ Run RobotFramework test suites with a runner of choice. @@ -13,7 +13,7 @@ Run RobotFramework test suites with a runner of choice. class Robot(WestCommand): def __init__(self): - super(Robot, self).__init__( + super().__init__( 'robot', # Keep this in sync with the string in west-commands.yml. 'run RobotFramework test suites',