scripts: west_commands: robot: Fix linter issues
Fix issues reported by ruff. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
359a0c2809
commit
b9fb5d79e4
2 changed files with 2 additions and 6 deletions
|
@ -1090,10 +1090,6 @@
|
||||||
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
|
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
|
||||||
"SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler
|
"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" = [
|
"./scripts/west_commands/run_common.py" = [
|
||||||
"B904", # https://docs.astral.sh/ruff/rules/raise-without-from-inside-except
|
"B904", # https://docs.astral.sh/ruff/rules/raise-without-from-inside-except
|
||||||
"B905", # https://docs.astral.sh/ruff/rules/zip-without-explicit-strict
|
"B905", # https://docs.astral.sh/ruff/rules/zip-without-explicit-strict
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
from west.commands import WestCommand
|
|
||||||
from run_common import add_parser_common, do_run_common
|
from run_common import add_parser_common, do_run_common
|
||||||
|
from west.commands import WestCommand
|
||||||
|
|
||||||
EXPORT_DESCRIPTION = '''\
|
EXPORT_DESCRIPTION = '''\
|
||||||
Run RobotFramework test suites with a runner of choice.
|
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):
|
class Robot(WestCommand):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Robot, self).__init__(
|
super().__init__(
|
||||||
'robot',
|
'robot',
|
||||||
# Keep this in sync with the string in west-commands.yml.
|
# Keep this in sync with the string in west-commands.yml.
|
||||||
'run RobotFramework test suites',
|
'run RobotFramework test suites',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue