-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
49 lines (46 loc) · 1.42 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
exclude: &exclude_files >
(?x)^(
docs/.*|
tests/.*|
.github/.*|
LICENSE|
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/PyCQA/pylint
rev: pylint-2.5.2
hooks:
- id: pylint
language: system
args: [
'--disable=protected-access',
'--disable=no-else-return',
'--disable=raise-missing-from',
'--disable=invalid-name',
'--disable=duplicate-code',
'--disable=import-outside-toplevel',
'--disable=missing-docstring',
'--disable=bad-continuation',
'--disable=locally-disabled',
'--disable=too-few-public-methods',
'--disable=too-many-arguments',
'--disable=too-many-instance-attributes',
'--disable=too-many-local-variables',
'--disable=too-many-locals',
'--disable=too-many-branches',
'--disable=too-many-statements',
'--disable=too-many-return-statements',
'--disable=redefined-builtin',
'--disable=redefined-outer-name',
'--disable=line-too-long',
'--disable=fixme',
]
exclude: *exclude_files
- repo: https://github.com/pycqa/flake8
rev: '3.9.2'
hooks:
- id: flake8