Merge pull request #765 from pytest-dev/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Alessio Bogon 2025-02-13 22:33:26 +01:00 committed by GitHub
commit 01c99a6693
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -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"]

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 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: