Skip to content

Commit 05fe564

Browse files
committed
update pre-commit hooks
Signed-off-by: Zhiyuan Chen <this@zyc.ai>
1 parent 835863e commit 05fe564

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ default_language_version:
22
python: python3
33
repos:
44
- repo: https://github.com/PSF/black
5-
rev: 24.4.2
5+
rev: 25.12.0
66
hooks:
77
- id: black
88
args: [--safe, --quiet]
99
- repo: https://github.com/PyCQA/isort
10-
rev: 5.13.2
10+
rev: 7.0.0
1111
hooks:
1212
- id: isort
1313
name: isort
@@ -20,35 +20,34 @@ repos:
2020
# - flake8-comprehensions
2121
# - flake8-simplify
2222
- repo: https://github.com/asottile/pyupgrade
23-
rev: v3.15.2
23+
rev: v3.21.2
2424
hooks:
2525
- id: pyupgrade
2626
args: [--py37-plus]
2727
- repo: https://github.com/tox-dev/pyproject-fmt
28-
rev: 2.1.1
28+
rev: v2.11.1
2929
hooks:
3030
- id: pyproject-fmt
3131
- repo: https://github.com/pre-commit/mirrors-mypy
32-
rev: v1.10.0
32+
rev: v1.19.0
3333
hooks:
3434
- id: mypy
3535
additional_dependencies:
3636
- types-requests
3737
- types-six
3838
- repo: https://github.com/codespell-project/codespell
39-
rev: v2.2.6
39+
rev: v2.4.1
4040
hooks:
4141
- id: codespell
4242
- repo: https://github.com/pre-commit/mirrors-prettier
4343
rev: v4.0.0-alpha.8
4444
hooks:
4545
- id: prettier
4646
- repo: https://github.com/pre-commit/pre-commit-hooks
47-
rev: v4.6.0
47+
rev: v6.0.0
4848
hooks:
4949
- id: check-added-large-files
5050
- id: check-ast
51-
- id: check-byte-order-marker
5251
- id: check-builtin-literals
5352
- id: check-case-conflict
5453
- id: check-docstring-first
@@ -63,8 +62,6 @@ repos:
6362
- id: debug-statements
6463
- id: end-of-file-fixer
6564
- id: fix-byte-order-marker
66-
- id: fix-encoding-pragma
67-
args: ["--remove"]
6865
- id: mixed-line-ending
6966
args: ["--fix=lf"]
7067
- id: requirements-txt-fixer

0 commit comments

Comments
 (0)