Debian Codegraph @

.pylintrc

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