Debian Codegraph @

.pylintrc

raw
1 [MASTER]
2
3 # A comma-separated list of package or module names from where C extensions may
4 # be loaded. Extensions are loading into the active Python interpreter and may
5 # run arbitrary code
6 extension-pkg-whitelist=
7
8 # Add files or directories to the blacklist. They should be base names, not
9 # paths.
10 ignore=CVS
11
12 # Add files or directories matching the regex patterns to the blacklist. The
13 # regex matches against base names, not paths.
14 ignore-patterns=
15
16 # Python code to execute, usually for sys.path manipulation such as
17 # pygtk.require().
18 #init-hook=
19
20 # Use multiple processes to speed up Pylint.
21 jobs=1
22
23 # List of plugins (as comma separated values of python modules names) to load,
24 # usually to register additional checkers.
25 load-plugins=
26
27 # Pickle collected data for later comparisons.
28 persistent=yes
29
30 # Specify a configuration file.
31 #rcfile=
32
33 # When enabled, pylint would attempt to guess common misconfiguration and emit
34 # user-friendly hints instead of false-positive error messages
35 suggestion-mode=yes
36
37 # Allow loading of arbitrary C extensions. Extensions are imported into the
38 # active Python interpreter and may run arbitrary code.
39 unsafe-load-any-extension=no
40
41
42 [MESSAGES CONTROL]
43
44 # Only show warnings with the listed confidence levels. Leave empty to show
45 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
46 confidence=
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=print-statement,
58 parameter-unpacking,
59 unpacking-in-except,
60 old-raise-syntax,
61 backtick,
62 long-suffix,
63 old-ne-operator,
64 old-octal-literal,
65 import-star-module-level,
66 non-ascii-bytes-literal,
67 raw-checker-failed,
68 bad-inline-option,
69 locally-disabled,
70 locally-enabled,
71 file-ignored,
72 suppressed-message,
73 useless-suppression,
74 deprecated-pragma,
75 apply-builtin,
76 basestring-builtin,
77 buffer-builtin,
78 cmp-builtin,
79 coerce-builtin,
80 execfile-builtin,
81 file-builtin,
82 long-builtin,
83 raw_input-builtin,
84 reduce-builtin,
85 standarderror-builtin,
86 unicode-builtin,
87 xrange-builtin,
88 coerce-method,
89 delslice-method,
90 getslice-method,
91 setslice-method,
92 no-absolute-import,
93 old-division,
94 dict-iter-method,
95 dict-view-method,
96 next-method-called,
97 metaclass-assignment,
98 indexing-exception,
99 raising-string,
100 reload-builtin,
101 oct-method,
102 hex-method,
103 nonzero-method,
104 cmp-method,
105 input-builtin,
106 round-builtin,
107 intern-builtin,
108 unichr-builtin,
109 map-builtin-not-iterating,
110 zip-builtin-not-iterating,
111 range-builtin-not-iterating,
112 filter-builtin-not-iterating,
113 using-cmp-argument,
114 eq-without-hash,
115 div-method,
116 idiv-method,
117 rdiv-method,
118 exception-message-attribute,
119 invalid-str-codec,
120 sys-max-int,
121 bad-python3-import,
122 deprecated-string-function,
123 deprecated-str-translate-call,
124 deprecated-itertools-function,
125 deprecated-types-field,
126 next-method-defined,
127 dict-items-not-iterating,
128 dict-keys-not-iterating,
129 dict-values-not-iterating,
130 inconsistent-return-statements,
131 no-name-in-module,
132 invalid-name,
133 abstract-method,
134 protected-access,
135 redefined-argument-from-local,
136 no-staticmethod-decorator,
137 super-init-not-called,
138 ungrouped-imports,
139 no-else-return,
140 useless-object-inheritance,
141
142 # Enable the message, report, category or checker with the given id(s). You can
143 # either give multiple identifier separated by comma (,) or put this option
144 # multiple time (only on the command line, not in the configuration file where
145 # it should appear only once). See also the "--disable" option for examples.
146 enable=c-extension-no-member
147
148
149 [REPORTS]
150
151 # Python expression which should return a note less than 10 (10 is the highest
152 # note). You have access to the variables errors warning, statement which
153 # respectively contain the number of errors / warnings messages and the total
154 # number of statements analyzed. This is used by the global evaluation report
155 # (RP0004).
156 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
157
158 # Template used to display messages. This is a python new-style format string
159 # used to format the message information. See doc for all details
160 #msg-template=
161
162 # Set the output format. Available formats are text, parseable, colorized, json
163 # and msvs (visual studio).You can also give a reporter class, eg
164 # mypackage.mymodule.MyReporterClass.
165 output-format=text
166
167 # Tells whether to display a full report or only the messages
168 reports=no
169
170 # Activate the evaluation score.
171 score=yes
172
173
174 [REFACTORING]
175
176 # Maximum number of nested blocks for function / method body
177 max-nested-blocks=5
178
179 # Complete name of functions that never returns. When checking for
180 # inconsistent-return-statements if a never returning function is called then
181 # it will be considered as an explicit return statement and no message will be
182 # printed.
183 never-returning-functions=optparse.Values,sys.exit
184
185
186 [LOGGING]
187
188 # Logging modules to check that the string format arguments are in logging
189 # function parameter format
190 logging-modules=logging
191
192
193 [SPELLING]
194
195 # Limits count of emitted suggestions for spelling mistakes
196 max-spelling-suggestions=4
197
198 # Spelling dictionary name. Available dictionaries: none. To make it working
199 # install python-enchant package.
200 spelling-dict=
201
202 # List of comma separated words that should not be checked.
203 spelling-ignore-words=
204
205 # A path to a file that contains private dictionary; one word per line.
206 spelling-private-dict-file=
207
208 # Tells whether to store unknown words to indicated private dictionary in
209 # --spelling-private-dict-file option instead of raising a message.
210 spelling-store-unknown-words=no
211
212
213 [MISCELLANEOUS]
214
215 # List of note tags to take in consideration, separated by a comma.
216 notes=FIXME,
217 XXX,
218 TODO
219
220
221 [TYPECHECK]
222
223 # List of decorators that produce context managers, such as
224 # contextlib.contextmanager. Add to this list to register other decorators that
225 # produce valid context managers.
226 contextmanager-decorators=contextlib.contextmanager
227
228 # List of members which are set dynamically and missed by pylint inference
229 # system, and so shouldn't trigger E1101 when accessed. Python regular
230 # expressions are accepted.
231 generated-members=bisect_key_left,
232 bisect_key_right,
233 bisect_key,
234 irange_key
235
236 # Tells whether missing members accessed in mixin class should be ignored. A
237 # mixin class is detected if its name ends with "mixin" (case insensitive).
238 ignore-mixin-members=yes
239
240 # This flag controls whether pylint should warn about no-member and similar
241 # checks whenever an opaque object is returned when inferring. The inference
242 # can return multiple potential results while evaluating a Python object, but
243 # some branches might not be evaluated, which results in partial inference. In
244 # that case, it might be useful to still emit no-member and other checks for
245 # the rest of the inferred objects.
246 ignore-on-opaque-inference=yes
247
248 # List of class names for which member attributes should not be checked (useful
249 # for classes with dynamically set attributes). This supports the use of
250 # qualified names.
251 ignored-classes=optparse.Values,thread._local,_thread._local
252
253 # List of module names for which member attributes should not be checked
254 # (useful for modules/projects where namespaces are manipulated during runtime
255 # and thus existing member attributes cannot be deduced by static analysis. It
256 # supports qualified module names, as well as Unix pattern matching.
257 ignored-modules=
258
259 # Show a hint with possible names when a member name was not found. The aspect
260 # of finding the hint is based on edit distance.
261 missing-member-hint=yes
262
263 # The minimum edit distance a name should have in order to be considered a
264 # similar match for a missing member name.
265 missing-member-hint-distance=1
266
267 # The total number of similar names that should be taken in consideration when
268 # showing a hint for a missing member.
269 missing-member-max-choices=1
270
271
272 [VARIABLES]
273
274 # List of additional names supposed to be defined in builtins. Remember that
275 # you should avoid to define new builtins when possible.
276 additional-builtins=
277
278 # Tells whether unused global variables should be treated as a violation.
279 allow-global-unused-variables=yes
280
281 # List of strings which can identify a callback function by name. A callback
282 # name must start or end with one of those strings.
283 callbacks=cb_,
284 _cb
285
286 # A regular expression matching the name of dummy variables (i.e. expectedly
287 # not used).
288 dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
289
290 # Argument names that match this expression will be ignored. Default to name
291 # with leading underscore
292 ignored-argument-names=_.*|^ignored_|^unused_
293
294 # Tells whether we should check for unused import in __init__ files.
295 init-import=no
296
297 # List of qualified module names which can have objects that can redefine
298 # builtins.
299 redefining-builtins-modules=six.moves,past.builtins,future.builtins
300
301
302 [FORMAT]
303
304 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
305 expected-line-ending-format=
306
307 # Regexp for a line that is allowed to be longer than the limit.
308 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
309
310 # Number of spaces of indent required inside a hanging or continued line.
311 indent-after-paren=4
312
313 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
314 # tab).
315 indent-string=' '
316
317 # Maximum number of characters on a single line.
318 max-line-length=80
319
320 # Maximum number of lines in a module
321 max-module-lines=1000
322
323 # List of optional constructs for which whitespace checking is disabled. `dict-
324 # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
325 # `trailing-comma` allows a space between comma and closing bracket: (a, ).
326 # `empty-line` allows space-only lines.
327 no-space-check=trailing-comma,
328 dict-separator
329
330 # Allow the body of a class to be on the same line as the declaration if body
331 # contains single statement.
332 single-line-class-stmt=no
333
334 # Allow the body of an if to be on the same line as the test if there is no
335 # else.
336 single-line-if-stmt=no
337
338
339 [SIMILARITIES]
340
341 # Ignore comments when computing similarities.
342 ignore-comments=yes
343
344 # Ignore docstrings when computing similarities.
345 ignore-docstrings=yes
346
347 # Ignore imports when computing similarities.
348 ignore-imports=no
349
350 # Minimum lines number of a similarity.
351 min-similarity-lines=6
352
353
354 [BASIC]
355
356 # Naming style matching correct argument names
357 argument-naming-style=snake_case
358
359 # Regular expression matching correct argument names. Overrides argument-
360 # naming-style
361 #argument-rgx=
362
363 # Naming style matching correct attribute names
364 attr-naming-style=snake_case
365
366 # Regular expression matching correct attribute names. Overrides attr-naming-
367 # style
368 #attr-rgx=
369
370 # Bad variable names which should always be refused, separated by a comma
371 bad-names=foo,
372 bar,
373 baz,
374 toto,
375 tutu,
376 tata
377
378 # Naming style matching correct class attribute names
379 class-attribute-naming-style=any
380
381 # Regular expression matching correct class attribute names. Overrides class-
382 # attribute-naming-style
383 #class-attribute-rgx=
384
385 # Naming style matching correct class names
386 class-naming-style=PascalCase
387
388 # Regular expression matching correct class names. Overrides class-naming-style
389 #class-rgx=
390
391 # Naming style matching correct constant names
392 const-naming-style=UPPER_CASE
393
394 # Regular expression matching correct constant names. Overrides const-naming-
395 # style
396 #const-rgx=
397
398 # Minimum line length for functions/classes that require docstrings, shorter
399 # ones are exempt.
400 docstring-min-length=-1
401
402 # Naming style matching correct function names
403 function-naming-style=snake_case
404
405 # Regular expression matching correct function names. Overrides function-
406 # naming-style
407 #function-rgx=
408
409 # Good variable names which should always be accepted, separated by a comma
410 good-names=i,
411 j,
412 k,
413 ex,
414 Run,
415 _
416
417 # Include a hint for the correct naming format with invalid-name
418 include-naming-hint=no
419
420 # Naming style matching correct inline iteration names
421 inlinevar-naming-style=any
422
423 # Regular expression matching correct inline iteration names. Overrides
424 # inlinevar-naming-style
425 #inlinevar-rgx=
426
427 # Naming style matching correct method names
428 method-naming-style=snake_case
429
430 # Regular expression matching correct method names. Overrides method-naming-
431 # style
432 #method-rgx=
433
434 # Naming style matching correct module names
435 module-naming-style=snake_case
436
437 # Regular expression matching correct module names. Overrides module-naming-
438 # style
439 #module-rgx=
440
441 # Colon-delimited sets of names that determine each other's naming style when
442 # the name regexes allow several styles.
443 name-group=
444
445 # Regular expression which should only match function or class names that do
446 # not require a docstring.
447 no-docstring-rgx=^_
448
449 # List of decorators that produce properties, such as abc.abstractproperty. Add
450 # to this list to register other decorators that produce valid properties.
451 property-classes=abc.abstractproperty
452
453 # Naming style matching correct variable names
454 variable-naming-style=snake_case
455
456 # Regular expression matching correct variable names. Overrides variable-
457 # naming-style
458 #variable-rgx=
459
460
461 [IMPORTS]
462
463 # Allow wildcard imports from modules that define __all__.
464 allow-wildcard-with-all=no
465
466 # Analyse import fallback blocks. This can be used to support both Python 2 and
467 # 3 compatible code, which means that the block might have code that exists
468 # only in one or another interpreter, leading to false positives when analysed.
469 analyse-fallback-blocks=no
470
471 # Deprecated modules which should not be used, separated by a comma
472 deprecated-modules=optparse,tkinter.tix
473
474 # Create a graph of external dependencies in the given file (report RP0402 must
475 # not be disabled)
476 ext-import-graph=
477
478 # Create a graph of every (i.e. internal and external) dependencies in the
479 # given file (report RP0402 must not be disabled)
480 import-graph=
481
482 # Create a graph of internal dependencies in the given file (report RP0402 must
483 # not be disabled)
484 int-import-graph=
485
486 # Force import order to recognize a module as part of the standard
487 # compatibility libraries.
488 known-standard-library=
489
490 # Force import order to recognize a module as part of a third party library.
491 known-third-party=enchant
492
493
494 [CLASSES]
495
496 # List of method names used to declare (i.e. assign) instance attributes.
497 defining-attr-methods=__init__,
498 __new__,
499 setUp
500
501 # List of member names, which should be excluded from the protected access
502 # warning.
503 exclude-protected=_asdict,
504 _fields,
505 _replace,
506 _source,
507 _make
508
509 # List of valid names for the first argument in a class method.
510 valid-classmethod-first-arg=cls
511
512 # List of valid names for the first argument in a metaclass class method.
513 valid-metaclass-classmethod-first-arg=mcs
514
515
516 [DESIGN]
517
518 # Maximum number of arguments for function / method
519 max-args=6
520
521 # Maximum number of attributes for a class (see R0902).
522 max-attributes=30
523
524 # Maximum number of boolean expressions in a if statement
525 max-bool-expr=5
526
527 # Maximum number of branch for function / method body
528 max-branches=25
529
530 # Maximum number of locals for function / method body
531 max-locals=30
532
533 # Maximum number of parents for a class (see R0901).
534 max-parents=10
535
536 # Maximum number of public methods for a class (see R0904).
537 max-public-methods=20
538
539 # Maximum number of return / yield for function / method body
540 max-returns=10
541
542 # Maximum number of statements in function / method body
543 max-statements=70
544
545 # Minimum number of public methods for a class (see R0903).
546 min-public-methods=2
547
548
549 [EXCEPTIONS]
550
551 # Exceptions that will emit a warning when being caught. Defaults to
552 # "Exception"
553 overgeneral-exceptions=Exception