-
Notifications
You must be signed in to change notification settings - Fork 30
/
.pre-commit-config.yaml
51 lines (50 loc) · 1.53 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
exclude: |
(?x)(
^data/ |
^howl-models |
^.github/
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-yaml
- id: requirements-txt-fixer
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: name-tests-test
- repo: https://github.com/timothycrosley/isort
rev: 5.5.4
hooks:
- id: isort
args: ['--profile=black', '--line-length=120']
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
args: ['--line-length=120']
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
args: ['--max-line-length=120', '--extend-ignore=E203']
exclude: __init__.py$
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.6.0
hooks:
- id: pylint
args: ['--max-line-length=120',
'--disable=no-self-use',
'--disable=import-error',
'--disable=too-few-public-methods',
'--disable=logging-fstring-interpolation',
'--disable=missing-module-docstring',
'--disable=too-many-arguments',
'--disable=too-many-locals',
'--disable=too-many-instance-attributes',
'--disable=fixme',
'--disable=broad-except',
'--disable=pointless-string-statement',
'--disable=duplicate-code' # TODO: to be dropped once refactoring is completed
]