Debian Codegraph @

.pylintrc

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