-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.prospector.yaml
74 lines (64 loc) · 1.5 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
64
65
66
67
68
69
70
71
72
73
---
strictness: high
test-warnings: true
doc-warnings: true
member-warnings: false
ignore-paths:
- build
- docker
- docs
- examples
- scripts
- tests
- autodist/proto/
ignore-patterns:
- setup.py
pep8:
options:
max-line-length: 120
pylint:
run: true
enable:
- duplicate-code
disable:
# Libraries aren't installed during linting
- import-error
- wrong-import-error
- cyclic-import
- invalid-name # e.g. o and df are not allowed
# Most of our logs don't need lazy interpolation
- logging-format-interpolation
- logging-fstring-interpolation
- missing-docstring
- unused-argument
- too-few-public-methods
- not-context-manager
- no-else-return
- protected-access
options:
max-line-length: 120
ignored-argument-names: arg|args|kwargs
max-attributes: 10
docstring-min-length: 5
dodgy:
run: true
pep257:
disable:
# - D102 # Missing doctring in public method
# - D103 # Missing doctring in public method
- D104 # Missing doctring in public package
- D105 # Missing doctring in magic method
- D107 # Missing docstring in __init__
- D203 # Blank line before class docstring
- D212 # Multi-line docstring should start at first line
- D406 # Section name should end with newline
- D407 # Missing dashed underline after section
- D413 # Missing blank line after last section
mccabe:
run: true
mypy:
run: false
options:
ignore-missing-imports: true
pyflakes:
run: false