Skip to content

Commit 893ed59

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

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ build-backend = "poetry.core.masonry.api"
6161
line-length = 120
6262
target-version = "py39"
6363
lint.select = [
64-
"B", # flake8-bugbearBugbear
64+
"B", # flake8-bugbear
6565
"E4", # pycodestyle - error - import
6666
"E7", # pycodestyle - error - statement
6767
"E9", # pycodestyle - error - runtime
6868
"F", # pyflakes
6969
"I", # isort
70+
"ISC", # flake8-implicit-str-concat
7071
"TC", # flake8-type-checking
7172
"UP", # pyupgrade
7273
]

src/pytest_bdd/scenario.py

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

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

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

0 commit comments

Comments
 (0)