Debian Codegraph @

tests/.pylintrc

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