Skip to content

Commit dbf8d30

Browse files
committed
scripts: west_commands: robot: Fix linter issues
Fix issues reported by ruff. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent e00d81e commit dbf8d30

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.ruff-excludes.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,10 +1101,6 @@
11011101
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
11021102
"SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler
11031103
]
1104-
"./scripts/west_commands/robot.py" = [
1105-
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
1106-
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters
1107-
]
11081104
"./scripts/west_commands/run_common.py" = [
11091105
"B904", # https://docs.astral.sh/ruff/rules/raise-without-from-inside-except
11101106
"B905", # https://docs.astral.sh/ruff/rules/zip-without-explicit-strict

scripts/west_commands/robot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
from west.commands import WestCommand
65
from run_common import add_parser_common, do_run_common
6+
from west.commands import WestCommand
77

88
EXPORT_DESCRIPTION = '''\
99
Run RobotFramework test suites with a runner of choice.
@@ -13,7 +13,7 @@
1313
class Robot(WestCommand):
1414

1515
def __init__(self):
16-
super(Robot, self).__init__(
16+
super().__init__(
1717
'robot',
1818
# Keep this in sync with the string in west-commands.yml.
1919
'run RobotFramework test suites',

0 commit comments

Comments
 (0)