1
+ ci :
2
+ autoupdate_schedule : quarterly
3
+ skip : [mypy]
4
+
5
+ default_stages : [commit]
6
+
7
+ default_install_hook_types : [pre-commit, commit-msg]
8
+
1
9
exclude : ^(docs/|.*test_files/|.*tests/)
2
10
3
11
repos :
@@ -7,25 +15,36 @@ repos:
7
15
- id : autoflake
8
16
args :
9
17
- --in-place
18
+ - --remove-unused-variables
10
19
- --remove-all-unused-imports
11
- - --remove-unused-variable
20
+ - --expand-star-imports
12
21
- --ignore-init-module-imports
13
22
14
23
- repo : https://github.com/psf/black
15
24
rev : 22.6.0
16
25
hooks :
17
26
- id : black
18
27
19
- - repo : https://github.com/pycqa /flake8
20
- rev : 4 .0.1
28
+ - repo : https://github.com/PyCQA /flake8
29
+ rev : 5 .0.4
21
30
hooks :
22
31
- id : flake8
23
32
33
+ - repo : https://github.com/pre-commit/mirrors-mypy
34
+ rev : v0.971
35
+ hooks :
36
+ - id : mypy
37
+ additional_dependencies : [types-requests]
38
+
24
39
- repo : https://github.com/pre-commit/pre-commit-hooks
25
40
rev : v4.3.0
26
41
hooks :
42
+ - id : check-case-conflict
43
+ - id : check-symlinks
27
44
- id : check-yaml
45
+ - id : destroyed-symlinks
28
46
- id : end-of-file-fixer
47
+ - id : mixed-line-ending
29
48
- id : trailing-whitespace
30
49
31
50
- repo : https://github.com/asottile/pyupgrade
@@ -34,6 +53,12 @@ repos:
34
53
- id : pyupgrade
35
54
args : [--py38-plus]
36
55
56
+ - repo : https://github.com/codespell-project/codespell
57
+ rev : v2.2.1
58
+ hooks :
59
+ - id : codespell
60
+ stages : [commit, commit-msg]
61
+
37
62
- repo : https://github.com/PyCQA/isort
38
63
rev : 5.10.1
39
64
hooks :
0 commit comments