-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pylintrc
47 lines (40 loc) · 1.31 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
[master]
load-plugins=pylint.extensions.docstyle
[messages control]
disable=
# Good design is best figured out by humans (yet)
design,
too-many-lines,
too-many-nested-blocks,
# Confuses redefined functions (see https://github.com/PyCQA/pylint/issues/2336)
assignment-from-no-return,
# Fails for Generic (see https://github.com/PyCQA/pylint/issues/2717)
duplicate-bases,
# Arguments should not be manipulated anyway
dangerous-default-value,
# There are built-ins with common names like id
redefined-builtin
[reports]
output-format=colorized
[basic]
# Remove length constraint, short and long names have their use
function-rgx=[a-z_][a-z0-9_]*$
variable-rgx=%(function-rgx)s
attr-rgx=%(function-rgx)s
argument-rgx=%(function-rgx)s
class-rgx=[A-Z_][a-zA-Z0-9]*$
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]*|(__.*__))$
method-rgx=%(function-rgx)s
[format]
# Long URLs and strings may be more readable
ignore-long-lines=://|'.+'|".+"
[imports]
# Pylint does not classify development mode dependencies correctly (see
# https://github.com/PyCQA/pylint/issues/1797)
known-third-party = micro
[typecheck]
# http.client status codes are defined dynamically
generated-members=http\.client\.[A-Z]
[classes]
# Add initialize, it is used by Tornado
defining-attr-methods=__init__,__new__,setUp,initialize