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