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