-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.pre-commit-config.yaml
51 lines (47 loc) · 1.22 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
default_language_version:
python: python3.9
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
# override until resolved: https://github.com/ambv/black/issues/402
files: \.pyi?$
types: []
exclude: ^testsuite/.*/
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
exclude: ^testsuite/.*/
additional_dependencies:
- flake8-bugbear
- flake8-deprecated
- flake8-comprehensions
- flake8-isort
- flake8-quotes
- flake8-mutable
- flake8-todo
- flake8-raise
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
exclude: ^testsuite/.*/
additional_dependencies: [toml]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1
hooks:
- id: mypy
additional_dependencies:
- types-six
exclude: ^testsuite/.*/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: ^testsuite/.*/
- id: end-of-file-fixer
exclude: ^testsuite/.*/
- id: debug-statements
exclude: ^testsuite/.*/