Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

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
rev: v4.0.0-alpha.8
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
Expand All @@ -32,20 +32,20 @@ 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:
- --max-line-length=100
# 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]
Expand All @@ -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$
Expand All @@ -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]
6 changes: 2 additions & 4 deletions tests/unit/test_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=<rpm.spec object at 0x7fe1ae1a6b30>)",
textwrap.dedent(
"""\
textwrap.dedent("""\
func1(
'first argument',
True,
Expand All @@ -42,8 +41,7 @@
0,
indent=' ',
spec=<rpm.spec object at 0x7fe1ae1a6b30>,
)"""
),
)"""),
),
],
)
Expand Down
Loading