forked from antismash/antismash
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pylintrc
32 lines (26 loc) · 778 Bytes
/
.pylintrc
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
[MASTER]
ignore=external
reports=y
disable=too-few-public-methods
[MESSAGES CONTROL]
# raising 'from' is almost entirely false positives
disable=raise-missing-from
fail-on=unused-import,unused-variable,comparison-with-itself,self-assigning-variable
[TYPECHECK]
ignored-classes=Config,TestCase,Namespace
[FORMAT]
max-line-length=120
[VARIABLES]
# unused imports in __init__.py are fine
init-import=no
[BASIC]
# if clear function naming makes them long, that's fine
function-rgx=[a-z_][a-z0-9_]{2,40}$
method-rgx=[a-z_][a-z0-9_]{2,40}$
# same is true for variables
variable-rgx=[a-z_][a-z0-9_]{1,40}$
# some names are shorter than 3 chars but informative
good-names=i,j,k,ex,Run,_,id,T
[DESIGN]
# having details provided as args is common, bump from default of 5
max-args=7