-
Notifications
You must be signed in to change notification settings - Fork 143
/
.prospector.yaml
63 lines (55 loc) · 1.97 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
strictness: high
max-line-length: 120
mccabe:
options:
max-complexity: 20
pyflakes:
disable:
- F401 # unused import. ignore until pyflakes supports type hints
doc-warnings: true
pep257:
disable:
- D211 # in conflict with D203
- D213 # in conflict with D212
# The following are disabled to make refactoring managable
- D413 # Missing blank line after last section - need to fix a lot of docstrings first
- D417 # Missing argument description in docstring
pylint:
disable:
- pointless-string-statement # pointless statement, which is how our event docstrings are seen
- too-few-public-methods
- too-many-positional-arguments # many methods have many positional args
- unsubscriptable-object # broken on python 3.9
# The following linter rules are disabled to make a refactor managable in chunks
- consider-using-f-string # temporarily disabling due to the 900+ instances to be replaced
- useless-suppression # disabling until all environments can agree on import paths
- missing-class-docstring
- use-dict-literal
- use-list-literal
- consider-using-max-builtin
- consider-using-min-builtin
- consider-using-generator
- raise-missing-from
options:
logging-modules: logging
logging-format-style: old
max-attributes: 12
max-parents: 15
max-branches: 30
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:
- mpf/tests/
- mpf/benchmarks/
- build
- docs
- mpf/platforms/trinamics/
- mpf/platforms/visual_pinball_engine/
- tools/
- _mpf-mc # ignore mc in subpath on travis
ignore-patterns:
- .*_pb2(_|\.).*