-
Notifications
You must be signed in to change notification settings - Fork 38
/
prospector.yml
87 lines (76 loc) · 2.45 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
78
79
80
81
82
83
84
85
86
87
strictness: low
test-warnings: false
doc-warnings: true
uses:
# We have issues with FKs as strings and failure with astroid
# However, leaving out Django causes other linting issues
- django
- celery
ignore-paths:
- docs/
- settings/
- common/
- readthedocs/rtd_tests/
- readthedocs/templates/
ignore-patterns:
- ^.*/migrations/.*\.py$
- ^.*/tests/.*\.py$
- conftest.py
pep8:
full: true
options:
max-line-length: 100
pylint:
options:
# Required for the Django plugin
django-settings-module: readthedocs.settings.test
docstring-min-length: 20
dummy-variables-rgx: '_$|__$|dummy'
max-line-length: 100
disable:
# We do this for circular imports
- cyclic-import
- 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
- logging-format-interpolation
- too-many-arguments
# Super spammy on every PR
- raise-missing-from
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
- D203 # 1 blank line required before class docstring (found 0)
- 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