-
Notifications
You must be signed in to change notification settings - Fork 97
/
.pylintrc
163 lines (117 loc) · 4.14 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# PyLint config for PyPhi code.
[MASTER]
ignore=
__pycache__,
__pyphi_cache__,
.cache,
.git,
.coverage,
build,
dist,
docs,
htmlcov,
benchmarks,
[MESSAGES CONTROL]
disable =
cyclic-import,
fixme,
import-error,
invalid-name,
locally-disabled,
no-member,
no-name-in-module,
missing-function-docstring
[REPORTS]
reports=no
[SIMILARITIES]
min-similarity-lines=15
ignore-imports=yes
[VARIABLES]
init-import=no
[FORMAT]
max-module-lines=1500
[BASIC]
# Regular expression which should only match function or class names that do
# not require a docstring.
# DEFAULT: no-docstring-rgx=__.*__
no-docstring-rgx=(__.*__|main)
# Minimum line length for functions/classes that require docstrings, shorter
# ones are exempt.
# DEFAULT: docstring-min-length=-1
docstring-min-length=10
# Regular expression which should only match correct module names. The
# leading underscore is sanctioned for private modules by Google's style
# guide.
module-rgx=^(_?[a-z][a-z0-9_]*)|__init__$
# Regular expression matching correct constant names
# DEFAULT: const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
const-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$
# Regular expression matching correct class attribute names
# DEFAULT: class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
class-attribute-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$
# Regular expression matching correct class names
# DEFAULT: class-rgx=[A-Z_][a-zA-Z0-9]+$
class-rgx=^_?[A-Z][a-zA-Z0-9]*$
# Regular expression which should only match correct function names.
# 'camel_case' and 'snake_case' group names are used for consistency of naming
# styles across functions and methods.
function-rgx=^(?:(?P<camel_case>_?[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_?[a-z][a-z0-9_]*))$
# Regular expression which should only match correct method names.
# 'camel_case' and 'snake_case' group names are used for consistency of naming
# styles across functions and methods. 'exempt' indicates a name which is
# consistent with all naming styles.
method-rgx=^(?:(?P<exempt>__[a-z0-9_]+__|next)|(?P<camel_case>_{0,2}[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_{0,2}[a-z][a-z0-9_]*))$
# Regular expression matching correct attribute names
# DEFAULT: attr-rgx=[a-z_][a-z0-9_]{2,30}$
attr-rgx=^_{0,2}[a-z][a-z0-9_]*$
# Regular expression matching correct argument names
# DEFAULT: argument-rgx=[a-z_][a-z0-9_]{2,30}$
argument-rgx=^[a-z][a-z0-9_]*$
# Regular expression matching correct variable names
# DEFAULT: variable-rgx=[a-z_][a-z0-9_]{2,30}$
variable-rgx=^[a-z][a-z0-9_]*$
# Regular expression matching correct inline iteration names
# DEFAULT: inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
inlinevar-rgx=^[a-z][a-z0-9_]*$
# Good variable names which should always be accepted, separated by a comma
# DEFAULT: good-names=i,j,k,ex,Run,_
good-names=main,_
# Bad variable names which should always be refused, separated by a comma
# DEFAULT: bad-names=foo,bar,baz,toto,tutu,tata
bad-names=
[DESIGN]
# Maximum number of arguments for function / method
# DEFAULT: max-args=5
# RATIONALE: API-mapping
max-args = 14
# Argument names that match this expression will be ignored. Default to name
# with leading underscore
# DEFAULT: ignored-argument-names=_.*
# Maximum number of locals for function / method body
# DEFAULT: max-locals=15
max-locals=24
# Maximum number of return / yield for function / method body
# DEFAULT: max-returns=6
max-returns=9
# Maximum number of branch for function / method body
# DEFAULT: max-branches=12
max-branches=21
# Maximum number of statements in function / method body
# DEFAULT: max-statements=50
# Maximum number of parents for a class (see R0901).
# DEFAULT: max-parents=7
max-parents=10
# Maximum number of attributes for a class (see R0902).
# DEFAULT: max-attributes=7
# RATIONALE: API mapping
max-attributes=19
# Minimum number of public methods for a class (see R0903).
# DEFAULT: min-public-methods=2
# RATIONALE: context mgrs may have *no* public methods
min-public-methods=0
# Maximum number of public methods for a class (see R0904).
# DEFAULT: max-public-methods=20
# RATIONALE: API mapping
max-public-methods=45
[ELIF]
max-nested-blocks=6