forked from openstack/manila
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pylintrc
188 lines (162 loc) · 5.34 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS,tests,test
# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
ignore-patterns=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use.
jobs=1
# Control the amount of potential inferred values when inferring a single
# object. This can help the performance when dealing with large functions or
# complex, nested conditions.
limit-inference-results=100
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=
# Pickle collected data for later comparisons.
persistent=yes
# Specify a configuration file.
#rcfile=
# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages.
suggestion-mode=yes
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no
[MESSAGES CONTROL]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
confidence=
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once). You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=
# "F" Fatal errors that prevent further processing
import-error,
# "I" Informational noise
locally-disabled,
c-extension-no-member,
# "E" Error for important programming issues (likely bugs)
no-member,
too-many-function-args,
not-callable,
assignment-from-none,
unsubscriptable-object,
used-prior-global-declaration,
not-an-iterable,
# "W" Warnings for stylistic problems or minor programming issues
unused-argument,
bad-indentation,
unused-variable,
useless-else-on-loop,
pointless-string-statement,
unused-import,
redefined-outer-name,
redefined-builtin,
attribute-defined-outside-init,
abstract-method,
fixme,
exec-used,
anomalous-backslash-in-string,
broad-except,
protected-access,
arguments-differ,
undefined-loop-variable,
try-except-raise,
global-statement,
super-init-not-called,
pointless-statement,
global-statement,
unnecessary-lambda,
keyword-arg-before-vararg,
deprecated-method,
useless-super-delegation,
eval-used,
wildcard-import,
reimported,
expression-not-assigned,
cell-var-from-loop,
signature-differs,
# "C" Coding convention violations
missing-docstring,
invalid-name,
wrong-import-order,
len-as-condition,
wrong-import-position,
bad-continuation,
too-many-lines,
misplaced-comparison-constant,
bad-mcs-classmethod-argument,
ungrouped-imports,
superfluous-parens,
unidiomatic-typecheck,
consider-iterating-dictionary,
bad-whitespace,
dangerous-default-value,
line-too-long,
consider-using-enumerate,
useless-import-alias,
singleton-comparison,
# "R" Refactor recommendations
no-self-use,
no-else-return,
too-many-locals,
too-many-public-methods,
consider-using-set-comprehension,
inconsistent-return-statements,
useless-object-inheritance,
too-few-public-methods,
too-many-boolean-expressions,
too-many-instance-attributes,
too-many-return-statements,
literal-comparison,
too-many-statements,
too-many-ancestors,
literal-comparison,
consider-merging-isinstance,
too-many-nested-blocks,
trailing-comma-tuple,
simplifiable-if-statement,
consider-using-in,
consider-using-ternary,
too-many-arguments
[REPORTS]
# Tells whether to display a full report or only the messages.
reports=no
[BASIC]
# Variable names can be 1 to 31 characters long, with lowercase and underscores
variable-rgx=[a-z_][a-z0-9_]{0,30}$
# Argument names can be 2 to 31 characters long, with lowercase and underscores
argument-rgx=[a-z_][a-z0-9_]{1,30}$
# Method names should be at least 3 characters long
# and be lowercased with underscores
method-rgx=([a-z_][a-z0-9_]{2,}|setUp|tearDown)$
# Module names matching neutron-* are ok (files in bin/)
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(neutron-[a-z0-9_-]+))$
# Don't require docstrings on tests.
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=79
[VARIABLES]
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
additional-builtins=_
[TYPECHECK]
# List of module names for which member attributes should not be checked
ignored-modules=six.moves,_MovedItems,alembic.op