Skip to content

Commit 3df90b7

Browse files
committed
Update old and add new checks to pre-commit
1 parent bd49d04 commit 3df90b7

File tree

1 file changed

+46
-15
lines changed

1 file changed

+46
-15
lines changed

.pre-commit-config.yaml

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,62 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: trailing-whitespace
6+
exclude: ^tests/.*/fixtures/.*
7+
- id: end-of-file-fixer
8+
exclude: ^tests/.*/fixtures/.*
9+
- id: debug-statements
10+
11+
- repo: https://github.com/hadialqattan/pycln
12+
rev: v2.1.1
13+
hooks:
14+
- id: pycln
15+
args: [--all]
16+
217
- repo: https://github.com/psf/black
3-
rev: 21.9b0
18+
rev: 22.6.0
419
hooks:
520
- id: black
621

7-
- repo: https://gitlab.com/pycqa/flake8
8-
rev: 3.9.2
22+
- repo: https://github.com/pycqa/flake8
23+
rev: 4.0.1
924
hooks:
1025
- id: flake8
26+
additional_dependencies: &flake8_deps
27+
- flake8-broken-line==0.4.0
28+
- flake8-bugbear==22.7.1
29+
- flake8-comprehensions==3.10.0
30+
- flake8-eradicate==1.2.1
31+
- flake8-quotes==3.3.1
32+
- flake8-simplify==0.19.2
33+
- flake8-tidy-imports==4.8.0
34+
- flake8-type-checking==2.0.3
35+
- flake8-typing-imports==1.12.0
36+
- flake8-use-fstring==1.3
37+
- pep8-naming==0.13.1
38+
39+
- repo: https://github.com/asottile/yesqa
40+
rev: v1.3.0
41+
hooks:
42+
- id: yesqa
43+
additional_dependencies: *flake8_deps
1144

12-
- repo: https://github.com/timothycrosley/isort
13-
rev: 5.9.3
45+
- repo: https://github.com/pycqa/isort
46+
rev: 5.10.1
1447
hooks:
1548
- id: isort
16-
additional_dependencies: [toml]
17-
exclude: ^.*/?setup\.py$
49+
args: [--add-import, from __future__ import annotations]
1850

1951
- repo: https://github.com/asottile/pyupgrade
20-
rev: v2.29.0
52+
rev: v2.37.3
2153
hooks:
2254
- id: pyupgrade
2355

24-
- repo: https://github.com/pre-commit/pre-commit-hooks
25-
rev: v4.0.1
56+
- repo: https://github.com/pre-commit/mirrors-mypy
57+
rev: v0.971
2658
hooks:
27-
- id: trailing-whitespace
28-
exclude: ^tests/.*/fixtures/.*
29-
- id: end-of-file-fixer
30-
exclude: ^tests/.*/fixtures/.*
31-
- id: debug-statements
59+
- id: mypy
60+
pass_filenames: false
61+
additional_dependencies:
62+
- pytest>=7.1.2

0 commit comments

Comments
 (0)