-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pylintrc
100 lines (62 loc) · 2.48 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[MASTER]
# Profiled execution.
profile=no
[MESSAGES CONTROL]
[REPORTS]
# Set the output format. Available formats are text, parseable, colorized, msvs
# (visual studio) and html
output-format=text
# Tells whether to display a full report or only the messages
reports=no
# Include message's id in output
msg-template={msg_id}:{line} {msg}
[FORMAT]
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
# Maximum number of characters on a single line.
# In Twisted projects, Lines are flowed at 79 columns.
max-line-length=79
[MISCELLANEOUS]
[VARIABLES]
[TYPECHECK]
# List of classes names for which member attributes should not be checked
# (useful for classes with attributes dynamically set).
ignored-classes=twisted.internet.reactor,ephem
[BASIC]
# Regular expression which should only match correct module names
# Modules must be named in all lower-case, or separated by underscores.
module-rgx=(([a-z_][a-z0-9_]*))$
# Default checker will accept all method names, but they are validated in a
# custom checker.
method-rgx=
# Function names should be same as method names.
function-rgx=((([a-z])|([a-z]+_[a-z]))[a-zA-Z0-9]+)$|(__[a-z]+__)$|(\_.+)$|(test\_.+)$
# Regular expression which should only match correct instance attribute names
# Attribute names should be in mixed case, with the first letter lower case,
# each word separated by having its first letter capitalized just like method names.
# And all private names should begin with an underscore.
attr-rgx=(((([a-z_])|([a-z]+_[a-z]))[a-zA-Z0-9]+)|(([A-Z_][A-Z0-9_]*))|(__[a-zA-Z0-9][a-zA-Z0-9_]*[a-zA-Z0-9]+__)|(__[a-zA-Z0-9]__))$
# Classes are to be named in mixed case, with the first letter capitalized,
# each word separated by having its first letter capitalized.
class-rgx=(_{0,1})([A-Z][a-zA-Z0-9]+)$
# Regular expression which should only match correct variable names
# good variable names:
# f, foo, _foo, fooBar
# bad variable names:
# FooBar, Foo, FOO, foo_bar
variable-rgx=([a-z_][a-zA-Z0-9]*)$
# Constant names.
# Constants in principle should named in style of FOO_BAR or FOOBAR.
# But in Twisted, many constants are named in style of variable names or
# class names, so just make sure they are valid.
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|([a-z_][a-zA-Z0-9]+)|([A-Z][a-zA-Z0-9]+))$
argument-rgx=([a-z_][a-zA-Z0-9]*)$
[SIMILARITIES]
[IMPORTS]
[DESIGN]
[CLASSES]
[TWISTEDCHECKER]
check-python3 = yes
# Disable consistent indentation constraint for docstring
disable = W9206