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