-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pycodestyle
46 lines (39 loc) · 1.08 KB
/
.pycodestyle
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
[pycodestyle]
ignore=.git,.vendor,.vendor2,.vendor3
persistent=yes
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
ignore-mixin-members=yes
max-line-length=120
max-module-lines=1000
indent-string=" "
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$
class-rgx=[A-Z_][a-zA-Z0-9]+$
function-rgx=[a-z_][a-z0-9_]{1,40}$
method-rgx=[a-z_][a-z0-9_]{2,40}$
attr-rgx=[a-z_][a-z0-9_]{2,30}$
argument-rgx=[a-z_][a-z0-9_]{2,30}$
variable-rgx=[a-z_][a-z0-9_]{2,30}$
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
good-names=i,j,k,ex,Run,_,e
bad-names=foo,bar,baz,toto,tutu,tata
no-docstring-rgx=__.*__
notes=FIXME,XXX,TODO
min-similarity-lines=4
ignore-comments=yes
ignore-docstrings=yes
init-import=no
dummy-variables-rgx=_|dummy
additional-builtins=
max-args=10
ignored-argument-names=_.*
max-locals=15
max-returns=6
max-branchs=12
max-statements=50
max-parents=7
max-attributes=7
min-public-methods=2
max-public-methods=20
defining-attr-methods=__init__,__new__,setUp
deprecated-modules=regsub,string,TERMIOS,Bastion,rexec