Skip to content

Commit

Permalink
Merge pull request #765 from pytest-dev/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
youtux authored Feb 13, 2025
2 parents c893aa3 + c85906d commit 01c99a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "89c421dff2e1026ba12cdb9ebd731f4a83aa8021" # frozen: v0.8.6
rev: "895ebb389825c29bd4e0addcf7579d6c69d199cc" # frozen: v0.9.6
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/python-poetry/poetry
rev: "f03d8f98781934df7910be5b6c14756e047ef432" # frozen: 2.0.0
rev: "bd500dd3bdfaec3de6894144c9cedb3a9358be84" # frozen: 2.0.1
hooks:
- id: poetry-check
args: ["--lock"]
6 changes: 3 additions & 3 deletions src/pytest_bdd/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 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:
Expand Down

0 comments on commit 01c99a6

Please sign in to comment.