Debian Codegraph @

.pylintrc

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