forked from krayon/pinball-mpf-mc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prospector.yaml
46 lines (38 loc) · 1.4 KB
/
.prospector.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
strictness: veryhigh
max-line-length: 120
mccabe:
options:
max-complexity: 15
pyflakes:
disable:
- F401 # unused import. ignore until pyflakes supports type hints
doc-warnings: false
pep257:
disable:
- D211 # in conflict with D203
- D213 # in conflict with D212
- D407 # Missing dashed underline after section - need to fix a lot of docstrings first
- D413 # Missing blank line after last section - need to fix a lot of docstrings first
pylint:
disable:
- pointless-string-statement # pointless statement, which is how our event docstrings are seen
- too-few-public-methods
- unsubscriptable-object # broken on python 3.9
- no-else-return # TODO: fix this
options:
max-attributes: 12
max-parents: 15
max-branches: 15
max-statements: 60
max-public-methods: 40
variable-rgx: "^[a-z_][a-z0-9]*((_[a-z0-9]+)*)?$" # pep8 style but not more
argument-rgx: "^[a-z_][a-z0-9]*((_[a-z0-9]+)*)?$" # pep8 style but not more
attr-rgx: "^[a-z_][a-z0-9_]*$" # pep8 style but not more
method-rgx: "^[a-z_][a-z0-9_]*$" # pep8 style but not more
ignore-paths:
- mpfmc/tests/
- docs
- build_scripts
- _mpf # ignore mpf in subpath on travis
- _mpf_installer # ignore mpf installer in subpath on travis
- setup.py # TODO: fix variable names here