forked from hypothesis/h
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prospector.yaml
63 lines (61 loc) · 1.96 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
output-format: grouped
strictness: veryhigh
doc-warnings: true
max-line-length: 160
# We run flake8 first and then prospector as a second-pass linter.
# Since flake8 already runs pyflakes, pep8 and mccabe, don't run them again
# with prospector.
mccabe:
run: false
pep8:
run: false
pep257:
disable:
- D203 # "1 blank line required before class docstring" conflicts with
# another pep257 rule D211 "No blank lines allowed before class
# docstring"!
- D212 # "Multi-line docstring summary should start at the first line"
# conflicts with another pep257 rule D213 "Multi-line docstring
# summary should start at the second line"
pyflakes:
run: false
pylint:
enable:
- relative-import
disable:
- line-too-long # PEP8 checks this and doesn't complain about
# unavoidable long lines (such as URLs).
- missing-docstring # The pep257 tool reports missing docstrings to us
# so we don't need pylint to do so.
- too-few-public-methods
options:
# Some good names that pylint would otherwise reject:
#
# - _: placeholder
# - i,j,k: counters
# - k,v: dict iteration
# - db,fn: common abbreviations
# - fp: python idiom for file handles
#
# Some good "constant" names that pylint would otherwise reject:
#
# - log: common in "log = logging.getLogger(__name__)" pattern
# - parser: common in modules that use argparse
# - id: Commonly used as a class attribute / database column name in
# sqlalchemy model classes. Note that if you use id as the name of
# a local variable or parameter, pylint will still complain that
# you're shadowing the builtin.
#
good-names: _,i,j,k,v,e,db,fn,fp,log,parser,id,es
pyroma:
run: true
ignore-paths:
- gunicorn.conf.py
- h/_version.py
- h/migrations/
- h/static/
- node_modules/
- versioneer.py
ignore-patterns:
- '.*\.egg'
- '.*conftest\.py'