Browse Source

scripts: west_commands: robot: Fix linter issues

Fix issues reported by ruff.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
pull/88314/merge
Pieter De Gendt 1 month ago committed by Anas Nashif
parent
commit
b9fb5d79e4
  1. 4
      .ruff-excludes.toml
  2. 4
      scripts/west_commands/robot.py

4
.ruff-excludes.toml

@ -1090,10 +1090,6 @@ @@ -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

4
scripts/west_commands/robot.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 = '''\
Run RobotFramework test suites with a runner of choice.
@ -13,7 +13,7 @@ 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',

Loading…
Cancel
Save