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