-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylintrc
69 lines (43 loc) · 1.37 KB
/
.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
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
[MESSAGES CONTROL]
disable=
missing-docstring,
no-else-raise, # "else" after "raise" can improve legibility
no-else-return, # same for "else" after "return"
redefined-builtin, # yes we call our variable `type`, that's ok
too-few-public-methods, # somethimes a class has only 1 method, that's fine
[REPORTS]
# Tells whether to display a full report or only the messages
reports=no
score=no
[VARIABLES]
# Tells whether we should check for unused import in __init__ files.
init-import=no
# A regular expression matching the name of dummy variables (i.e. expectedly
# not used).
dummy-variables-rgx=_$|\w+_unused
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=132
# pylint-quotes plugin config
string-quote=single-avoid-escape
triple-quote=single
docstring-quote=double
[DESIGN]
# Maximum number of arguments for function / method
max-args=10
[BASIC]
# We're cool with map, filter, input
bad-functions=
# Remove restrictions on name lengths
argument-rgx=[a-z_][a-z0-9_]*$
attr-rgx=[a-z_][a-z0-9_]*$
class-attribute-rgx=[A-Za-z_][A-Za-z0-9_]*
function-rgx=[a-z_][a-z0-9_]*$
method-rgx=[a-z_][a-z0-9_]*$
variable-rgx=[a-z_][a-z0-9_]*$
[TYPECHECK]
# pylint gets confused about the members of the lxml package
ignored-modules = lxml
[SIMILARITIES]
# Some of these @overload annotations do get quite repetitive
min-similarity-lines=8