-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
63 lines (58 loc) · 1.67 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
52
53
54
55
56
57
58
59
60
61
62
63
repos:
- repo: https://github.com/psf/black
# when updating this version, also update blacken-docs hook below
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.9.1
hooks:
- id: blacken-docs
additional_dependencies: ['black==20.8b1']
- repo: https://github.com/timothycrosley/isort
rev: 5.7.0
hooks:
- id: isort
- repo: local
hooks:
- id: mypy
name: Run mypy
entry: python -m mypy src/
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/PyCQA/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies: [
'darglint~=1.5.4',
'flake8-absolute-import~=1.0',
'flake8-blind-except~=0.2.0',
'flake8-builtins~=1.5.3',
'flake8-cognitive-complexity==0.1.0',
'flake8-comprehensions~=3.2.3',
'flake8-docstrings~=1.5.0',
'flake8-logging-format~=0.6.0',
'flake8-mutable~=1.2.0',
'flake8-print~=3.1.4',
'flake8-printf-formatting~=1.1.0',
'flake8-pytest-style~=1.2.3',
'flake8-quotes~=3.2.0',
'flake8-tuple~=0.4.1',
'pep8-naming~=0.11.1'
]
exclude: 'docs'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: mixed-line-ending
args: ['--fix=lf']
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements