33 rev : v4.4.0
44 hooks :
55 - id : check-executables-have-shebangs
6+ - id : check-toml
67 - id : check-yaml
78 - id : end-of-file-fixer
89 types : [python]
@@ -14,60 +15,41 @@ repos:
1415 hooks :
1516 - id : auto-walrus
1617
18+ - repo : https://github.com/charliermarsh/ruff-pre-commit
19+ rev : v0.0.255
20+ hooks :
21+ - id : ruff
22+
1723 - repo : https://github.com/psf/black
1824 rev : 23.1.0
1925 hooks :
2026 - id : black
2127
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
2430 hooks :
25- - id : isort
26- args :
27- - --profile=black
31+ - id : codespell
32+ additional_dependencies :
33+ - tomli
2834
2935 - repo : https://github.com/tox-dev/pyproject-fmt
3036 rev : " 0.9.2"
3137 hooks :
3238 - id : pyproject-fmt
3339
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+
3448 - repo : https://github.com/abravalheri/validate-pyproject
3549 rev : v0.12.1
3650 hooks :
3751 - id : validate-pyproject
3852
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-
7153 - repo : https://github.com/pre-commit/mirrors-mypy
7254 rev : v1.1.1
7355 hooks :
@@ -77,25 +59,3 @@ repos:
7759 - --install-types # See mirrors-mypy README.md
7860 - --non-interactive
7961 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