3
3
rev : v4.4.0
4
4
hooks :
5
5
- id : check-executables-have-shebangs
6
+ - id : check-toml
6
7
- id : check-yaml
7
8
- id : end-of-file-fixer
8
9
types : [python]
@@ -14,60 +15,41 @@ repos:
14
15
hooks :
15
16
- id : auto-walrus
16
17
18
+ - repo : https://github.com/charliermarsh/ruff-pre-commit
19
+ rev : v0.0.255
20
+ hooks :
21
+ - id : ruff
22
+
17
23
- repo : https://github.com/psf/black
18
24
rev : 23.1.0
19
25
hooks :
20
26
- id : black
21
27
22
- - repo : https://github.com/PyCQA/isort
23
- rev : 5.12.0
28
+ - repo : https://github.com/codespell-project/codespell
29
+ rev : v2.2.4
24
30
hooks :
25
- - id : isort
26
- args :
27
- - --profile=black
31
+ - id : codespell
32
+ additional_dependencies :
33
+ - tomli
28
34
29
35
- repo : https://github.com/tox-dev/pyproject-fmt
30
36
rev : " 0.9.2"
31
37
hooks :
32
38
- id : pyproject-fmt
33
39
40
+ - repo : local
41
+ hooks :
42
+ - id : validate-filenames
43
+ name : Validate filenames
44
+ entry : ./scripts/validate_filenames.py
45
+ language : script
46
+ pass_filenames : false
47
+
34
48
- repo : https://github.com/abravalheri/validate-pyproject
35
49
rev : v0.12.1
36
50
hooks :
37
51
- id : validate-pyproject
38
52
39
- - repo : https://github.com/asottile/pyupgrade
40
- rev : v3.3.1
41
- hooks :
42
- - id : pyupgrade
43
- args :
44
- - --py311-plus
45
-
46
- - repo : https://github.com/charliermarsh/ruff-pre-commit
47
- rev : v0.0.255
48
- hooks :
49
- - id : ruff
50
- args :
51
- - --ignore=E741
52
-
53
- - repo : https://github.com/PyCQA/flake8
54
- rev : 6.0.0
55
- hooks :
56
- - id : flake8 # See .flake8 for args
57
- additional_dependencies : &flake8-plugins
58
- - flake8-bugbear
59
- - flake8-builtins
60
- # - flake8-broken-line
61
- - flake8-comprehensions
62
- - pep8-naming
63
-
64
- - repo : https://github.com/asottile/yesqa
65
- rev : v1.4.0
66
- hooks :
67
- - id : yesqa
68
- additional_dependencies :
69
- *flake8-plugins
70
-
71
53
- repo : https://github.com/pre-commit/mirrors-mypy
72
54
rev : v1.1.1
73
55
hooks :
@@ -77,25 +59,3 @@ repos:
77
59
- --install-types # See mirrors-mypy README.md
78
60
- --non-interactive
79
61
additional_dependencies : [types-requests]
80
-
81
- - repo : https://github.com/codespell-project/codespell
82
- rev : v2.2.4
83
- hooks :
84
- - id : codespell
85
- args :
86
- - --ignore-words-list=3rt,ans,crate,damon,fo,followings,hist,iff,kwanza,mater,secant,som,sur,tim,zar
87
- exclude : |
88
- (?x)^(
89
- ciphers/prehistoric_men.txt |
90
- strings/dictionary.txt |
91
- strings/words.txt |
92
- project_euler/problem_022/p022_names.txt
93
- )$
94
-
95
- - repo : local
96
- hooks :
97
- - id : validate-filenames
98
- name : Validate filenames
99
- entry : ./scripts/validate_filenames.py
100
- language : script
101
- pass_filenames : false
0 commit comments