Skip to content

Commit 9c146cf

Browse files
committed
chore(pre-commit): Update pre-commit hooks
Upgrade multiple pre-commit hooks to their latest versions for improved compatibility. Adjusted arguments where necessary to align with updated features or requirements. Fixes #241
1 parent 404ad38 commit 9c146cf

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.5.0
4+
rev: v5.0.0
55
hooks:
66
- id: check-docstring-first
77
- id: check-merge-conflict
@@ -14,14 +14,14 @@ repos:
1414
- id: requirements-txt-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/PyCQA/isort
17-
rev: 5.12.0
17+
rev: 6.0.1
1818
hooks:
1919
- id: isort
2020
args:
2121
- "--profile=black"
2222
exclude: ^.devcontainer/
2323
- repo: https://github.com/psf/black
24-
rev: 23.9.1
24+
rev: 25.1.0
2525
hooks:
2626
- id: black
2727
language_version: python3
@@ -33,22 +33,22 @@ repos:
3333
args:
3434
- "--py36-plus"
3535
- repo: https://github.com/PyCQA/flake8
36-
rev: 6.1.0
36+
rev: 7.1.2
3737
hooks:
3838
- id: flake8
3939
exclude: ^.devcontainer/
4040
- repo: https://github.com/asottile/pyupgrade
41-
rev: v3.15.0
41+
rev: v3.19.1
4242
hooks:
4343
- id: pyupgrade
4444
args:
45-
- "--py39-plus"
45+
- "--py310-plus"
4646
- repo: https://github.com/adrienverge/yamllint
47-
rev: v1.32.0
47+
rev: v1.36.0
4848
hooks:
4949
- id: yamllint
5050
- repo: https://github.com/econchick/interrogate
51-
rev: 1.5.0
51+
rev: 1.7.0
5252
hooks:
5353
- id: interrogate
5454
args: [--fail-under=90, --verbose]
@@ -59,13 +59,17 @@ repos:
5959
# - id: htmlhint
6060
# args: [--config, .htmlhintrc]
6161
- repo: https://github.com/igorshubovych/markdownlint-cli
62-
rev: v0.37.0
62+
rev: v0.44.0
6363
hooks:
6464
- id: markdownlint
6565
- repo: https://github.com/astral-sh/ruff-pre-commit
66-
rev: v0.0.292
66+
rev: v0.11.0
6767
hooks:
68+
# Run the linter.
6869
- id: ruff
70+
args: [--fix]
71+
# Run the formatter.
72+
- id: ruff-format
6973
#- repo: local
7074
# hooks:
7175
# - id: wily
@@ -84,3 +88,4 @@ repos:
8488
# args:
8589
# - --diff=git diff HEAD
8690
# - --no-summary
91+
...

0 commit comments

Comments
 (0)