diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b749fa..7bd3c09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,11 +4,11 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.19.1 + rev: v3.21.2 hooks: - id: pyupgrade - - repo: https://github.com/psf/black - rev: 25.1.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier @@ -16,7 +16,7 @@ repos: hooks: - id: prettier - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -32,7 +32,7 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/PyCQA/flake8 - rev: 7.1.2 + rev: 7.3.0 hooks: - id: flake8 args: @@ -40,12 +40,12 @@ repos: # https://github.com/PyCQA/pycodestyle/issues/373 - --extend-ignore=E203 - repo: https://github.com/PyCQA/isort - rev: 6.0.1 + rev: 7.0.0 hooks: - id: isort args: [--profile, black] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v1.19.1 hooks: - id: mypy args: [--show-error-codes, --ignore-missing-imports] @@ -57,25 +57,25 @@ repos: # This file is overridden by a type stub exclude: "specfile/context_management.py" - repo: https://github.com/teemtee/tmt.git - rev: 1.43.0 + rev: 1.65.0 hooks: - id: tmt-lint # linting of the reverse-dependency tests requires internet access stages: [manual, pre-push] - repo: https://github.com/packit/pre-commit-hooks - rev: v1.2.0 + rev: v1.3.0 hooks: - id: check-rebase args: - https://github.com/packit/specfile.git stages: [manual, pre-push] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.31.3 + rev: 0.36.0 hooks: - id: check-github-workflows args: ["--verbose"] - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.5 + rev: v1.5.6 hooks: - id: insert-license files: \.py$ @@ -85,7 +85,7 @@ repos: - --comment-style - "#" - repo: https://github.com/crate-ci/typos - rev: v1.36.2 + rev: v1 hooks: - id: typos args: [--config, _typos.toml] diff --git a/tests/unit/test_formatter.py b/tests/unit/test_formatter.py index a9485e3..eaca0b3 100644 --- a/tests/unit/test_formatter.py +++ b/tests/unit/test_formatter.py @@ -25,8 +25,7 @@ "func1('first argument', True, func2(kwarg={42: ['nested list item 1', " "'nested list item 2', 'nested list item 3']}), 0, indent=' ', " "spec=)", - textwrap.dedent( - """\ + textwrap.dedent("""\ func1( 'first argument', True, @@ -42,8 +41,7 @@ 0, indent=' ', spec=, - )""" - ), + )"""), ), ], )