1 | [MASTER] |
---|
2 | |
---|
3 | # Specify a configuration file. |
---|
4 | #rcfile= |
---|
5 | |
---|
6 | # Python code to execute, usually for sys.path manipulation such as |
---|
7 | # pygtk.require(). |
---|
8 | #init-hook='import os, sys; sys.path.extend([os.getcwd(),os.path.join(os.getcwd(),"extra")])' |
---|
9 | init-hook='import sys; sys.path.append('extra') |
---|
10 | |
---|
11 | # Profiled execution. |
---|
12 | #profile=no |
---|
13 | |
---|
14 | # Add files or directories to the blacklist. They should be base names, not |
---|
15 | # paths. |
---|
16 | ignore=CVS |
---|
17 | |
---|
18 | # Pickle collected data for later comparisons. |
---|
19 | persistent=yes |
---|
20 | |
---|
21 | # List of plugins (as comma separated values of python modules names) to load, |
---|
22 | # usually to register additional checkers. |
---|
23 | #load-plugins=pylint_numpy,pylint_scipy,pylint_pyopencl,pylint_sas |
---|
24 | |
---|
25 | # Use multiple processes to speed up Pylint. |
---|
26 | #jobs=4 |
---|
27 | |
---|
28 | # Allow loading of arbitrary C extensions. Extensions are imported into the |
---|
29 | # active Python interpreter and may run arbitrary code. |
---|
30 | unsafe-load-any-extension=no |
---|
31 | |
---|
32 | # A comma-separated list of package or module names from where C extensions may |
---|
33 | # be loaded. Extensions are loading into the active Python interpreter and may |
---|
34 | # run arbitrary code |
---|
35 | extension-pkg-whitelist= |
---|
36 | |
---|
37 | [MESSAGES CONTROL] |
---|
38 | |
---|
39 | # Only show warnings with the listed confidence levels. Leave empty to show |
---|
40 | # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED |
---|
41 | confidence= |
---|
42 | |
---|
43 | # Enable the message, report, category or checker with the given id(s). You can |
---|
44 | # either give multiple identifier separated by comma (,) or put this option |
---|
45 | # multiple time. See also the "--disable" option for examples. |
---|
46 | #enable= |
---|
47 | |
---|
48 | # Disable the message, report, category or checker with the given id(s). You |
---|
49 | # can either give multiple identifiers separated by comma (,) or put this |
---|
50 | # option multiple times (only on the command line, not in the configuration |
---|
51 | # file where it should appear only once).You can also use "--disable=all" to |
---|
52 | # disable everything first and then reenable specific checks. For example, if |
---|
53 | # you want to run only the similarities checker, you can use "--disable=all |
---|
54 | # --enable=similarities". If you want to run only the classes checker, but have |
---|
55 | # no Warning level messages displayed, use"--disable=all --enable=classes |
---|
56 | # --disable=W" |
---|
57 | #disable=W0702,E1608,W1627,E1601,E1603,E1602,E1605,E1604,E1607,E1606,W1621,W1620,W1623,W1622,W1625,W1624,W1609,W1626,W1607,W1606,W1605,W1604,W1603,W1602,W1601,I0021,I0020,W1618,W1619,W1630,W1631,W1610,W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1632,W1633,W0704,W1628,W1629,W1608 |
---|
58 | |
---|
59 | # Disable the message(s) with the given id(s). |
---|
60 | # http://pylint-messages.wikidot.com/all-codes |
---|
61 | disable= |
---|
62 | multiple-statements, |
---|
63 | bare-except, |
---|
64 | broad-except, |
---|
65 | star-args, |
---|
66 | unbalanced-tuple-unpacking, |
---|
67 | locally-enabled, |
---|
68 | locally-disabled, |
---|
69 | #no-else-return, |
---|
70 | #invalid-name, |
---|
71 | fixme, |
---|
72 | too-many-lines, |
---|
73 | too-many-locals, |
---|
74 | too-many-branches, |
---|
75 | too-many-statements, |
---|
76 | #too-many-instance-attributes, |
---|
77 | #too-many-return-statements, |
---|
78 | #no-self-use, |
---|
79 | |
---|
80 | [REPORTS] |
---|
81 | |
---|
82 | # Set the output format. Available formats are text, parseable, colorized, msvs |
---|
83 | # (visual studio) and html. You can also give a reporter class, eg |
---|
84 | # mypackage.mymodule.MyReporterClass. |
---|
85 | output-format=text |
---|
86 | |
---|
87 | # Put messages in a separate file for each module / package specified on the |
---|
88 | # command line instead of printing them on stdout. Reports (if any) will be |
---|
89 | # written in a file name "pylint_global.[txt|html]". |
---|
90 | files-output=no |
---|
91 | |
---|
92 | # Tells whether to display a full report or only the messages |
---|
93 | reports=yes |
---|
94 | |
---|
95 | # Python expression which should return a note less than 10 (10 is the highest |
---|
96 | # note). You have access to the variables errors warning, statement which |
---|
97 | # respectively contain the number of errors / warnings messages and the total |
---|
98 | # number of statements analyzed. This is used by the global evaluation report |
---|
99 | # (RP0004). |
---|
100 | evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
---|
101 | |
---|
102 | # Add a comment according to your evaluation note. This is used by the global |
---|
103 | # evaluation report (RP0004). |
---|
104 | #comment=no |
---|
105 | |
---|
106 | # Template used to display messages. This is a python new-style format string |
---|
107 | # used to format the message information. See doc for all details |
---|
108 | #msg-template= |
---|
109 | |
---|
110 | [BASIC] |
---|
111 | |
---|
112 | # Required attributes for module, separated by a comma |
---|
113 | #required-attributes= |
---|
114 | |
---|
115 | # List of builtins function names that should not be used, separated by a comma |
---|
116 | bad-functions=map,filter,input |
---|
117 | |
---|
118 | # Good variable names which should always be accepted, separated by a comma |
---|
119 | good-names=_, |
---|
120 | input, id, |
---|
121 | h, i, j, k, n, p, u, v, w, x, y, z, r, dr, |
---|
122 | q, qx, qy, qz, Q, Qx, Qy, Qz, nx, ny, nz, nq, nr, |
---|
123 | dt, dx, dy, dz, dq, S, P, a, b, c, |
---|
124 | Iq, dIq, Iqxy, Iq_calc, |
---|
125 | ER, call_ER, VR, call_VR, |
---|
126 | Rmax, SElength, |
---|
127 | |
---|
128 | # Bad variable names which should always be refused, separated by a comma |
---|
129 | bad-names=foo,bar,baz,toto,tutu,tata |
---|
130 | |
---|
131 | # Colon-delimited sets of names that determine each other's naming style when |
---|
132 | # the name regexes allow several styles. |
---|
133 | name-group= |
---|
134 | |
---|
135 | # Include a hint for the correct naming format with invalid-name |
---|
136 | include-naming-hint=no |
---|
137 | |
---|
138 | # Regular expression matching correct function names |
---|
139 | function-rgx=[a-z_][a-z0-9_]{2,30}([123]D)?$ |
---|
140 | |
---|
141 | # Naming hint for function names |
---|
142 | function-name-hint=[a-z_][a-z0-9_]{2,30}$ |
---|
143 | |
---|
144 | # Regular expression matching correct variable names |
---|
145 | variable-rgx=[a-z_][a-z0-9_{2D}{1D}]{1,30}$ |
---|
146 | |
---|
147 | # Naming hint for variable names |
---|
148 | variable-name-hint=[a-z_][a-z0-9_]{2,30}$ |
---|
149 | |
---|
150 | # Regular expression matching correct constant names |
---|
151 | const-rgx=(([A-Za-z_][A-Za-z0-9_]*)|(__.*__))$ |
---|
152 | |
---|
153 | # Naming hint for constant names |
---|
154 | const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
---|
155 | |
---|
156 | # Regular expression matching correct attribute names |
---|
157 | attr-rgx=[a-z_][a-z0-9__{2D}{1D}]{2,30}$ |
---|
158 | |
---|
159 | # Naming hint for attribute names |
---|
160 | attr-name-hint=[a-z_][a-z0-9_]{2,30}$ |
---|
161 | |
---|
162 | # Regular expression matching correct argument names |
---|
163 | argument-rgx=[a-z_][a-z0-9_]{1,30}$ |
---|
164 | |
---|
165 | # Naming hint for argument names |
---|
166 | argument-name-hint=[a-z_][a-z0-9_]{2,30}$ |
---|
167 | |
---|
168 | # Regular expression matching correct class attribute names |
---|
169 | class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
---|
170 | |
---|
171 | # Naming hint for class attribute names |
---|
172 | class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
---|
173 | |
---|
174 | # Regular expression matching correct inline iteration names |
---|
175 | inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
---|
176 | |
---|
177 | # Naming hint for inline iteration names |
---|
178 | inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ |
---|
179 | |
---|
180 | # Regular expression matching correct class names |
---|
181 | class-rgx=[A-Z_][a-zA-Z0-9]+$ |
---|
182 | |
---|
183 | # Naming hint for class names |
---|
184 | class-name-hint=[A-Z_][a-zA-Z0-9]+$ |
---|
185 | |
---|
186 | # Regular expression matching correct module names |
---|
187 | module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
---|
188 | |
---|
189 | # Naming hint for module names |
---|
190 | module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
---|
191 | |
---|
192 | # Regular expression matching correct method names |
---|
193 | method-rgx=[a-z_][a-z0-9_]{2,30}$ |
---|
194 | |
---|
195 | # Naming hint for method names |
---|
196 | method-name-hint=[a-z_][a-z0-9_]{2,30}$ |
---|
197 | |
---|
198 | # Regular expression which should only match function or class names that do |
---|
199 | # not require a docstring. |
---|
200 | #no-docstring-rgx=__.*__ |
---|
201 | no-docstring-rgx=_.* |
---|
202 | |
---|
203 | # Minimum line length for functions/classes that require docstrings, shorter |
---|
204 | # ones are exempt. |
---|
205 | docstring-min-length=-1 |
---|
206 | |
---|
207 | [FORMAT] |
---|
208 | |
---|
209 | # Maximum number of characters on a single line. |
---|
210 | max-line-length=100 |
---|
211 | |
---|
212 | # Regexp for a line that is allowed to be longer than the limit. |
---|
213 | #ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
---|
214 | # No comma in the last forty characters |
---|
215 | ignore-long-lines=([^-,+*/]{40},?|[^"]{40}")$ |
---|
216 | |
---|
217 | # Allow the body of an if to be on the same line as the test if there is no |
---|
218 | # else. |
---|
219 | single-line-if-stmt=no |
---|
220 | |
---|
221 | # List of optional constructs for which whitespace checking is disabled |
---|
222 | no-space-check=trailing-comma,dict-separator |
---|
223 | |
---|
224 | # Maximum number of lines in a module |
---|
225 | max-module-lines=1000 |
---|
226 | |
---|
227 | # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
---|
228 | # tab). |
---|
229 | indent-string=' ' |
---|
230 | |
---|
231 | # Number of spaces of indent required inside a hanging or continued line. |
---|
232 | indent-after-paren=4 |
---|
233 | |
---|
234 | # Expected format of line ending, e.g. empty (any line ending), LF or CRLF. |
---|
235 | expected-line-ending-format= |
---|
236 | |
---|
237 | |
---|
238 | [LOGGING] |
---|
239 | |
---|
240 | # Logging modules to check that the string format arguments are in logging |
---|
241 | # function parameter format |
---|
242 | logging-modules=logging |
---|
243 | |
---|
244 | |
---|
245 | [MISCELLANEOUS] |
---|
246 | |
---|
247 | # List of note tags to take in consideration, separated by a comma. |
---|
248 | notes=FIXME,XXX,TODO |
---|
249 | |
---|
250 | |
---|
251 | [SIMILARITIES] |
---|
252 | |
---|
253 | # Minimum lines number of a similarity. |
---|
254 | min-similarity-lines=4 |
---|
255 | |
---|
256 | # Ignore comments when computing similarities. |
---|
257 | ignore-comments=yes |
---|
258 | |
---|
259 | # Ignore docstrings when computing similarities. |
---|
260 | ignore-docstrings=yes |
---|
261 | |
---|
262 | # Ignore imports when computing similarities. |
---|
263 | ignore-imports=no |
---|
264 | |
---|
265 | |
---|
266 | [SPELLING] |
---|
267 | |
---|
268 | # Spelling dictionary name. Available dictionaries: none. To make it working |
---|
269 | # install python-enchant package. |
---|
270 | spelling-dict= |
---|
271 | |
---|
272 | # List of comma separated words that should not be checked. |
---|
273 | spelling-ignore-words= |
---|
274 | |
---|
275 | # A path to a file that contains private dictionary; one word per line. |
---|
276 | spelling-private-dict-file= |
---|
277 | |
---|
278 | # Tells whether to store unknown words to indicated private dictionary in |
---|
279 | # --spelling-private-dict-file option instead of raising a message. |
---|
280 | spelling-store-unknown-words=no |
---|
281 | |
---|
282 | |
---|
283 | [TYPECHECK] |
---|
284 | |
---|
285 | # Tells whether missing members accessed in mixin class should be ignored. A |
---|
286 | # mixin class is detected if its name ends with "mixin" (case insensitive). |
---|
287 | ignore-mixin-members=yes |
---|
288 | |
---|
289 | # List of module names for which member attributes should not be checked |
---|
290 | # (useful for modules/projects where namespaces are manipulated during runtime |
---|
291 | # and thus existing member attributes cannot be deduced by static analysis |
---|
292 | ignored-modules=bumps,sas,numpy,numpy.random,scipy,scipy.special,pyopencl,pycuda,matplotlib.cm,ipyvolume,ipywidget |
---|
293 | |
---|
294 | # List of classes names for which member attributes should not be checked |
---|
295 | # (useful for classes with attributes dynamically set). |
---|
296 | ignored-classes=SQLObject |
---|
297 | |
---|
298 | # When zope mode is activated, add a predefined set of Zope acquired attributes |
---|
299 | # to generated-members. |
---|
300 | #zope=no |
---|
301 | |
---|
302 | # List of members which are set dynamically and missed by pylint inference |
---|
303 | # system, and so shouldn't trigger E0201 when accessed. Python regular |
---|
304 | # expressions are accepted. |
---|
305 | generated-members=REQUEST,acl_users,aq_parent |
---|
306 | |
---|
307 | |
---|
308 | [VARIABLES] |
---|
309 | |
---|
310 | # Tells whether we should check for unused import in __init__ files. |
---|
311 | init-import=no |
---|
312 | |
---|
313 | # A regular expression matching the name of dummy variables (i.e. expectedly |
---|
314 | # not used). |
---|
315 | dummy-variables-rgx=_$|dummy |
---|
316 | |
---|
317 | # List of additional names supposed to be defined in builtins. Remember that |
---|
318 | # you should avoid to define new builtins when possible. |
---|
319 | additional-builtins= |
---|
320 | |
---|
321 | # List of strings which can identify a callback function by name. A callback |
---|
322 | # name must start or end with one of those strings. |
---|
323 | callbacks=cb_,_cb |
---|
324 | |
---|
325 | |
---|
326 | [CLASSES] |
---|
327 | |
---|
328 | # List of interface methods to ignore, separated by a comma. This is used for |
---|
329 | # instance to not check methods defines in Zope's Interface base class. |
---|
330 | #ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by |
---|
331 | |
---|
332 | # List of method names used to declare (i.e. assign) instance attributes. |
---|
333 | defining-attr-methods=__init__,__new__,setUp |
---|
334 | |
---|
335 | # List of valid names for the first argument in a class method. |
---|
336 | valid-classmethod-first-arg=cls |
---|
337 | |
---|
338 | # List of valid names for the first argument in a metaclass class method. |
---|
339 | valid-metaclass-classmethod-first-arg=mcs |
---|
340 | |
---|
341 | # List of member names, which should be excluded from the protected access |
---|
342 | # warning. |
---|
343 | exclude-protected=_asdict,_fields,_replace,_source,_make |
---|
344 | |
---|
345 | |
---|
346 | [DESIGN] |
---|
347 | |
---|
348 | # Maximum number of arguments for function / method |
---|
349 | max-args=15 |
---|
350 | |
---|
351 | # Argument names that match this expression will be ignored. Default to name |
---|
352 | # with leading underscore |
---|
353 | ignored-argument-names=_.* |
---|
354 | |
---|
355 | # Maximum number of locals for function / method body |
---|
356 | max-locals=25 |
---|
357 | |
---|
358 | # Maximum number of return / yield for function / method body |
---|
359 | max-returns=6 |
---|
360 | |
---|
361 | # Maximum number of branch for function / method body |
---|
362 | max-branches=12 |
---|
363 | |
---|
364 | # Maximum number of statements in function / method body |
---|
365 | max-statements=50 |
---|
366 | |
---|
367 | # Maximum number of parents for a class (see R0901). |
---|
368 | max-parents=7 |
---|
369 | |
---|
370 | # Maximum number of attributes for a class (see R0902). |
---|
371 | max-attributes=7 |
---|
372 | |
---|
373 | # Minimum number of public methods for a class (see R0903). |
---|
374 | min-public-methods=0 |
---|
375 | |
---|
376 | # Maximum number of public methods for a class (see R0904). |
---|
377 | max-public-methods=20 |
---|
378 | |
---|
379 | |
---|
380 | [IMPORTS] |
---|
381 | |
---|
382 | # Deprecated modules which should not be used, separated by a comma |
---|
383 | deprecated-modules=regsub,TERMIOS,Bastion,rexec |
---|
384 | |
---|
385 | # Create a graph of every (i.e. internal and external) dependencies in the |
---|
386 | # given file (report RP0402 must not be disabled) |
---|
387 | import-graph= |
---|
388 | |
---|
389 | # Create a graph of external dependencies in the given file (report RP0402 must |
---|
390 | # not be disabled) |
---|
391 | ext-import-graph= |
---|
392 | |
---|
393 | # Create a graph of internal dependencies in the given file (report RP0402 must |
---|
394 | # not be disabled) |
---|
395 | int-import-graph= |
---|
396 | |
---|
397 | |
---|
398 | [EXCEPTIONS] |
---|
399 | |
---|
400 | # Exceptions that will emit a warning when being caught. Defaults to |
---|
401 | # "Exception" |
---|
402 | overgeneral-exceptions=Exception |
---|