forked from readthedocs/common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prospector.yml
77 lines (66 loc) · 2 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
strictness: low
test-warnings: false
doc-warnings: true
uses:
- django
- celery
ignore-paths:
- docs/
- settings/
- common/
ignore-patterns:
- rtd_tests/
- /migrations/
- local_settings.py
- settings/
- conftest.py
pep8:
full: true
options:
max-line-length: 100
pylint:
options:
docstring-min-length: 20
dummy-variables-rgx: '_$|__$|dummy'
max-line-length: 100
disable:
# We do this for circular imports
- import-outside-toplevel
- inconsistent-return-statements
# We need to adapt our isort config
- relative-beyond-top-level
# We don't use a custom User model.
- imported-auth-user
# Too many to update for now.
- consider-using-f-string
mccabe:
run: false
pep257:
run: true
disable:
# These ones are ignored because the `missing-docstring` is checked
# by `pylint` and it has an option called `docstring-min-length`
# which is set to 20. So, methods that are < 20 lines do not
# require docstring. In this case, `pep257` will fail because it
# will say the docstring is required.
- D100 # Missing docstring in public module
- D101 # Missing docstring in public class
- D102 # Missing docstring in public method
- D104
- D105
- D106 # Missing docstring in public nested class
- D107 # Missing docstring in __init__
- D202 # No blank lines allowed after function docstring (found 1)
- D211
- D104
- D202 # No blank lines allowed after function docstring
- D212 # Multi-line docstring summary should start at the first line
# pydocstyle
- D403 # First word of the first line should be properly capitalized ('Github', not 'GitHub')
- D406 # Section name should end with a newline ('Examples', not 'Examples::')
- D407 # Missing dashed underline after section ('Examples')
- D412 # No blank lines allowed between a section header and its content ('Examples')
- D413 # Missing blank line after last section ('Examples')
pyflakes:
disable:
- F999