-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prospector.yml
53 lines (47 loc) · 1.66 KB
/
.prospector.yml
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
strictness: veryhigh
doc-warnings: true
ignore-paths:
- docs
- tests
pep8:
options:
max-line-length: 120
disable:
- E127
- W391
- E203 # ignoring white space before colon :
pep257:
options:
convention: numpy
disable:
- D404
- D100 # Missing docstring in public module, handled by pylint
- D101 # Missing docstring in public class, handled by pylint
- D102 # Missing docstring in public method, handled by pylint
- D103 # Missing docstring in public function, handled by pylint
- D104 # Missing docstring in public package, handled by pylint
- D107 # Missing docstrings in __init__, we don't have them by convention
- D203 # Blank line required before class docstring
- D213 # Docstring Summary should start in second line
pylint:
options:
max-line-length: 120
variable-rgx: "[a-z_][a-z0-9_]{0,30}$" # Allow for single letter variable names
function-rgx: "[a-z_][a-z0-9_]{0,50}$" # Allow for single letter function names
argument-rgx: "[a-z_][a-z0-9_]{0,30}$" # Allow for single letter argument names
class-rgx: "[A-Z_][a-zA-Z0-9_]*$" # Allow for single letter class names
disable:
- too-many-ancestors
- too-few-public-methods
- too-many-arguments
- too-many-instance-attributes
- abstract-method
- invalid-unary-operand-type
- too-many-locals # ignore the use of more than 15 local variables
- invalid-unary-operand-type
- protected-access
- too-many-lines
- useless-suppression
- unsupported-assignment-operation # because of pylint/astroid bug
- unsubscriptable-object # because of pylint/astroid bug
- consider-using-f-string