-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prospector.yaml
89 lines (78 loc) · 2 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
output-format: json
strictness: veryhigh
test-warnings: true
doc-warnings: true
max-line-length: 150
uses:
- django
ignore-paths:
- docs
- models
- references
- reports
- tests
- notebooks
ignore-patterns:
- __init__.py # ignore all init files in the entire repo
- migrations # ignore all directories called migrations in the entire repo
# pycodestyle/pep8 coding guidelines
pycodestyle:
full: true
# pydocstyle/pep257 coding guidelines
pydocstyle:
run: true
disable:
- D213 # Igonore: Multi-line docstring summary should start at the second line
- D400 # First line need not end with a period
- D415 # First line need not end with a period, question mark, or exclamation
- D203 # No blank line required before class docstring
# pylint
## enforces a coding standard,
## looks for code smells,
## and can make suggestions about how the code could be refactored
pylint:
run: true
disable:
- wildcard-import # Star imports
- too-few-public-methods
- useless-object-inheritance
- astroid-error #TODO: figure out what the problems actually are
- too-many-arguments
- too-many-locals
- no-value-for-parameter
- django-not-configured
- unused-argument
- too-many-nested-blocks #TODO: simplify the data comparison method and remove this
- cell-var-from-loop
# pyflakes
## analyzes programs and detects various errors
pyflakes:
run: true
# mccabe
## measures code complexity
mccabe:
run: true
# dodgy
## looks for things which should not be in a public project like secret keys
dodgy:
run: true
# mypy
## type checking
mypy:
run: true
# # bandit
# ## looks for common security issues
# bandit:
# run: true
# pyroma
## a tool to check your setup.py to ensure it is following best practices
pyroma:
run: true
# vulture
## finds unused classes, functions and variables in your code
vulture:
run: true
disable:
- unused-variable
- unused-function
- unused-attribute