forked from hustlei/QssStylesheetEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prospector.yml
69 lines (58 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
inherits:
- strictness_high
# ignore-paths: # not work
# - /dist
# - /installer #scripts for installer binary
ignore-patterns:
- (^|\/|\\)\..+
- (^|\/|\\)setup.py$
- dist
- venv
- .*(^|\/|\\)splash.py$ #imported many modules in splash, but not used
- .*(_[vV][0-9.\-_]+[.]py$$|[.]old[.]py$$|_bak[.]py$) #old version scripts
- .*(^|\/|\\)bak(\/|\\|$).* #old version scripts
- .*(^|\/|\\)toml(\/|\\|$).* #3rdparty scripts
# 7default: pylint, pep8, pyflakes, mccabe, dodgy, pydecstyle, profile-validator
#pylint-config-file: .pylintrc
pylint: # run pylint in prospector will cause an error
run: false
pep8:
full: true
disable:
- W503 # line break before binary operator
# pep8 not include N, but Nxxx is in prospector
- N802 # function name should be lowercase
- N803 # argument name should be lowercase
- N806 # variable in function should be lowercase
- N815
- N816
options:
max-line-length: 120
pyflakes:
disable:
- F401 # imported but unused
mccabe:
run: true
options:
max-complexity: 15
pep257:
run: false
disable:
# - D000 # disable all
- D102 # Missing docstring in public method
- D103 # Missing docstring in public function
- D105 # Missing docstring in magic method
- D213 # Multi-line docstring summary should start at the second line. diffrent to pylint
# change later
- D104 # Missing docstring in public package
- D107 # Missing docstring in __init__
- D403 # First word of the first line should be properly capitalized ('Remove', not 'remove')
- D204 # 1 blank line required after class docstring
- D415 # First line should end with a period, question mark, or exclamation point
pyroma:
disable:
- PYR15
- PYR16
- PYR17
- PYR18
- PYR19