Skip to content

Commit d70029d

Browse files
committed
refactor: Drop implicit str concatentation (ISC001)
- Applied through ruff (`ruff check --select=TC --unsafe-fixes --fix`)
1 parent eb5ca74 commit d70029d

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

pyproject.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ build-backend = "poetry.core.masonry.api"
6161
line-length = 120
6262
target-version = "py39"
6363
lint.select = [
64-
"B", # flake8-bugbear
65-
"E4", # pycodestyle - error - import
66-
"E7", # pycodestyle - error - statement
67-
"E9", # pycodestyle - error - runtime
68-
"F", # pyflakes
69-
"I", # isort
70-
"UP", # pyupgrade
64+
"B", # flake8-bugbear
65+
"E4", # pycodestyle - error - import
66+
"E7", # pycodestyle - error - statement
67+
"E9", # pycodestyle - error - runtime
68+
"F", # pyflakes
69+
"I", # isort
70+
"ISC", # flake8-implicit-str-concat
71+
"UP", # pyupgrade
7172
]
7273
lint.isort.required-imports = [
7374
"from __future__ import annotations",

src/pytest_bdd/scenario.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ def parse_step_arguments(step: Step, context: StepFunctionContext) -> dict[str,
188188
"""Parse step arguments."""
189189
parsed_args = context.parser.parse_arguments(step.name)
190190

191-
assert parsed_args is not None, (
192-
f"Unexpected `NoneType` returned from " f"parse_arguments(...) in parser: {context.parser!r}"
193-
)
191+
assert (
192+
parsed_args is not None
193+
), f"Unexpected `NoneType` returned from parse_arguments(...) in parser: {context.parser!r}"
194194

195195
reserved_args = set(parsed_args.keys()) & STEP_ARGUMENTS_RESERVED_NAMES
196196
if reserved_args:

0 commit comments

Comments
 (0)