-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
executable file
·48 lines (44 loc) · 1.32 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
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.6.4
hooks:
- id: isort
exclude: 'manage.py|setup.py|migrations'
args: [--filter-files]
files: \.py$
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
exclude: 'manage.py|setup.py|migrations'
args: [--target-version=py38, --line-length=120]
- repo: https://github.com/pycqa/pylint
rev: pylint-2.6.0
hooks:
- id: pylint
exclude: 'manage.py|test|setup.py|migrations'
args: [
--max-line-length=120,
--disable=design,
--disable=missing-docstring,
--disable=bad-continuation,
--disable=max-module-lines,
--disable=useless-super-delegation,
--disable=import-error,
--disable=logging-fstring-interpolation,
--disable=invalid-name,
--disable=duplicate-code,
--disable=broad-except,
--disable=logging-format-interpolation,
--disable=too-many-lines,
--disable=no-self-use,
--disable=unused-argument,
--disable=fixme, # At some point this can be removed
--disable=unused-import,
]
- repo: https://github.com/PyCQA/bandit
rev: 1.6.2
hooks:
- id: bandit
args: ['-iii', '-ll']
exclude: 'manage.py|tests|setup.py|migrations'