Debian Codegraph @

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