refactor: Drop implicit str concatentation (ISC001)

- Applied through ruff (`ruff check --select=TC --unsafe-fixes --fix`)
This commit is contained in:
Kieran Ryan 2024-12-31 16:17:38 +00:00
parent eb5ca74524
commit d70029dde9
2 changed files with 11 additions and 10 deletions

View File

@ -61,13 +61,14 @@ build-backend = "poetry.core.masonry.api"
line-length = 120
target-version = "py39"
lint.select = [
"B", # flake8-bugbear
"E4", # pycodestyle - error - import
"E7", # pycodestyle - error - statement
"E9", # pycodestyle - error - runtime
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"E4", # pycodestyle - error - import
"E7", # pycodestyle - error - statement
"E9", # pycodestyle - error - runtime
"F", # pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"UP", # pyupgrade
]
lint.isort.required-imports = [
"from __future__ import annotations",

View File

@ -188,9 +188,9 @@ def parse_step_arguments(step: Step, context: StepFunctionContext) -> dict[str,
"""Parse step arguments."""
parsed_args = context.parser.parse_arguments(step.name)
assert parsed_args is not None, (
f"Unexpected `NoneType` returned from " f"parse_arguments(...) in parser: {context.parser!r}"
)
assert (
parsed_args is not None
), f"Unexpected `NoneType` returned from parse_arguments(...) in parser: {context.parser!r}"
reserved_args = set(parsed_args.keys()) & STEP_ARGUMENTS_RESERVED_NAMES
if reserved_args: