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=
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=0
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=all
64
65 # Enable the message, report, category or checker with the given id(s). You can
66 # either give multiple identifier separated by comma (,) or put this option
67 # multiple time (only on the command line, not in the configuration file where
68 # it should appear only once). See also the "--disable" option for examples.
69 enable=C0102, # Black listed name "%s"**
70 C0121, # Missing required attribute "%s"**
71 C0202, # Class method %s should have cls as first argument**
72 C0203, # Metaclass method %s should have mcs as first argument**
73 C0204, # Metaclass class method %s should have %s as first argument**
74 C0325, # Unnecessary parens after %r keyword**
75 E0011, # Unrecognized file option %r**
76 E0012, # Bad option value %r**
77 E0100, # __init__ method is a generator**
78 E0101, # Explicit return in __init__**
79 E0102, # %s already defined line %s**
80 E0103, # %r not properly in loop**
81 E0104, # Return outside function**
82 E0105, # Yield outside function**
83 E0106, # Return with argument inside generator**
84 E0107, # Use of the non-existent %s operator**
85 E0108, # Duplicate argument name %s in function definition**
86 E0202, # An attribute affected in %s line %s hide this method**
87 E0203, # Access to member %r before its definition line %s**
88 E0211, # Method has no argument**
89 E0213, # Method should have "self" as first argument**
90 # E0221, # Interface resolved to %s is not a class**
91 # E0222, # Missing method %r from %s interface**
92 E0235, # __exit__ must accept 3 arguments: type, value, traceback**
93 # E0501, # Old: Non ascii characters found but no encoding specified (PEP 263)**
94 # E0502, # Old: Wrong encoding specified (%s)**
95 # E0503, # Old: Unknown encoding specified (%s)**
96 E0601, # Using variable %r before assignment**
97 E0602, # Undefined variable %r**
98 E0603, # Undefined variable name %r in __all__**
99 E0604, # Invalid object %r in __all__, must contain only strings**
100 E0611, # No name %r in module %r**
101 E0701, # Bad except clauses order (%s)**
102 E0702, # Raising %s while only classes, instances or string are allowed**
103 E0710, # Raising a new style class which doesn't inherit from BaseException**
104 E0711, # NotImplemented raised - should raise NotImplementedError**
105 E0712, # Catching an exception which doesn\'t inherit from BaseException: %s**
106 # E1001, # Use of __slots__ on an old style class**
107 # E1002, # Use of super on an old style class**
108 E1003, # Bad first argument %r given to super()**
109 # E1004, # Missing argument to super()**
110 # E1101, # %s %r has no %r member** ## RE-ENABLE AFTER CODE RESTRUCTURING
111 E1102, # %s is not callable**
112 # E1103, # %s %r has no %r member (but some types could not be inferred)** ## RE-ENABLE AFTER CODE RESTRUCTURING
113 E1111, # Assigning to function call which doesn't return**
114 E1120, # No value passed for parameter %s in function call**
115 E1121, # Too many positional arguments for function call**
116 # E1122, # Old: Duplicate keyword argument %r in function call**
117 E1123, # Passing unexpected keyword argument %r in function call**
118 E1124, # Parameter %r passed as both positional and keyword argument**
119 E1125, # Old: Missing mandatory keyword argument %r**
120 E1200, # Unsupported logging format character %r (%#02x) at index %d**
121 E1201, # Logging format string ends in middle of conversion specifier**
122 E1205, # Too many arguments for logging format string**
123 E1206, # Not enough arguments for logging format string**
124 E1300, # Unsupported format character %r (%#02x) at index %d**
125 E1301, # Format string ends in middle of conversion specifier**
126 E1302, # Mixing named and unnamed conversion specifiers in format string**
127 E1303, # Expected mapping for format string, not %s**
128 E1304, # Missing key %r in format string dictionary**
129 E1305, # Too many arguments for format string**
130 E1306, # Not enough arguments for format string**
131 E1310, # Suspicious argument in %s.%s call**
132 W0101, # Unreachable code**
133 W0102, # Dangerous default value %s as argument**
134 W0104, # Statement seems to have no effect**
135 W0105, # String statement has no effect**
136 W0106, # Expression "%s" is assigned to nothing**
137 W0108, # Lambda may not be necessary**
138 W0109, # Duplicate key %r in dictionary**
139 W0120, # Else clause on loop without a break statement**
140 W0150, # %s statement in finally block may swallow exception**
141 W0201, # Attribute %r defined outside __init__**
142 W0211, # Static method with %r as first argument**
143 # W0221, # Arguments number differs from %s method** ## RE-ENABLE AFTER CODE RESTRUCTURING
144 # W0222, # Signature differs from %s method** ## RE-ENABLE AFTER CODE RESTRUCTURING
145 W0223, # Method %r is abstract in class %r but is not overridden**
146 W0234, # iter returns non-iterator**
147 W0301, # Unnecessary semicolon**
148 W0311, # Bad indentation. Found %s %s, expected %s**
149 # W0312, # Found indentation with %ss instead of %ss**
150 # W0331, # Use of the <> operator**
151 W0402, # Uses of a deprecated module %r**
152 W0406, # Module import itself**
153 # W0512, # Cannot decode using encoding "%s", unexpected byte at position %d**
154 W0601, # Global variable %r undefined at the module level**
155 W0602, # Using global for %r but no assigment is done**
156 W0611, # Unused import %s**
157 W0612, # Unused variable %r**
158 W0613, # Unused argument %r**
159 W0614, # Unused import %s from wildcard import**
160 W0621, # Redefining name %r from outer scope (line %s)**
161 W0622, # Redefining built-in %r**
162 # W0623, # Redefining name %r from %s in exception handler**
163 W0631, # Using possibly undefined loop variable %r**
164 W0632, # Possible unbalanced tuple unpacking with sequence%s: …**
165 W0633, # Attempting to unpack a non-sequence%s**
166 # W0701, # Raising a string exception**
167 # W0704, # Except doesn't do anything**
168 # W0710, # Exception doesn't inherit from standard "Exception" class**
169 W0711, # Exception to catch is the result of a binary "%s" operation**
170 # W0712, # Implicit unpacking of exceptions is not supported in Python 3**
171 W1111, # Assigning to function call which only returns None**
172 W1300, # Format string dictionary key should be a string, not %s**
173 W1301, # Unused key %r in format string dictionary**
174 W1401, # Anomalous backslash in string: \'%s\'. String constant might be missing an r prefix.**
175 W1402, # Anomalous Unicode escape in byte string: \'%s\'. String constant might be missing an r or u prefix.**
176 W1501, # "%s" is not a valid mode for open.**
177
178
179 [REPORTS]
180
181 # Python expression which should return a score less than or equal to 10. You
182 # have access to the variables 'error', 'warning', 'refactor', and 'convention'
183 # which contain the number of messages in each category, as well as 'statement'
184 # which is the total number of statements analyzed. This score is used by the
185 # global evaluation report (RP0004).
186 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
187
188 # Template used to display messages. This is a python new-style format string
189 # used to format the message information. See doc for all details.
190 #msg-template=
191
192 # Set the output format. Available formats are text, parseable, colorized, json
193 # and msvs (visual studio). You can also give a reporter class, e.g.
194 # mypackage.mymodule.MyReporterClass.
195 output-format=text
196
197 # Tells whether to display a full report or only the messages.
198 reports=no
199
200 # Activate the evaluation score.
201 score=yes
202
203
204 [REFACTORING]
205
206 # Maximum number of nested blocks for function / method body
207 max-nested-blocks=5
208
209 # Complete name of functions that never returns. When checking for
210 # inconsistent-return-statements if a never returning function is called then
211 # it will be considered as an explicit return statement and no message will be
212 # printed.
213 never-returning-functions=sys.exit
214
215
216 [BASIC]
217
218 # Naming style matching correct argument names.
219 argument-naming-style=snake_case
220
221 # Regular expression matching correct argument names. Overrides argument-
222 # naming-style.
223 #argument-rgx=
224
225 # Naming style matching correct attribute names.
226 attr-naming-style=snake_case
227
228 # Regular expression matching correct attribute names. Overrides attr-naming-
229 # style.
230 #attr-rgx=
231
232 # Bad variable names which should always be refused, separated by a comma.
233 bad-names=foo,
234 bar,
235 baz,
236 toto,
237 tutu,
238 tata
239
240 # Bad variable names regexes, separated by a comma. If names match any regex,
241 # they will always be refused
242 bad-names-rgxs=
243
244 # Naming style matching correct class attribute names.
245 class-attribute-naming-style=any
246
247 # Regular expression matching correct class attribute names. Overrides class-
248 # attribute-naming-style.
249 #class-attribute-rgx=
250
251 # Naming style matching correct class names.
252 class-naming-style=PascalCase
253
254 # Regular expression matching correct class names. Overrides class-naming-
255 # style.
256 #class-rgx=
257
258 # Naming style matching correct constant names.
259 const-naming-style=UPPER_CASE
260
261 # Regular expression matching correct constant names. Overrides const-naming-
262 # style.
263 #const-rgx=
264
265 # Minimum line length for functions/classes that require docstrings, shorter
266 # ones are exempt.
267 docstring-min-length=-1
268
269 # Naming style matching correct function names.
270 function-naming-style=snake_case
271
272 # Regular expression matching correct function names. Overrides function-
273 # naming-style.
274 #function-rgx=
275
276 # Good variable names which should always be accepted, separated by a comma.
277 good-names=i,
278 j,
279 k,
280 ex,
281 Run,
282 _,
283 nf, # common for nix.File
284 da, # common for DataArray
285 mt, # common for MultiTag
286 df, # common for DataFrame
287 dv, # common for DataView
288 dt, # common for time difference/step
289 id, # entity id attribute
290
291 # Good variable names regexes, separated by a comma. If names match any regex,
292 # they will always be accepted
293 good-names-rgxs=
294
295 # Include a hint for the correct naming format with invalid-name.
296 include-naming-hint=no
297
298 # Naming style matching correct inline iteration names.
299 inlinevar-naming-style=any
300
301 # Regular expression matching correct inline iteration names. Overrides
302 # inlinevar-naming-style.
303 #inlinevar-rgx=
304
305 # Naming style matching correct method names.
306 method-naming-style=snake_case
307
308 # Regular expression matching correct method names. Overrides method-naming-
309 # style.
310 #method-rgx=
311
312 # Naming style matching correct module names.
313 module-naming-style=snake_case
314
315 # Regular expression matching correct module names. Overrides module-naming-
316 # style.
317 #module-rgx=
318
319 # Colon-delimited sets of names that determine each other's naming style when
320 # the name regexes allow several styles.
321 name-group=
322
323 # Regular expression which should only match function or class names that do
324 # not require a docstring.
325 no-docstring-rgx=^_
326
327 # List of decorators that produce properties, such as abc.abstractproperty. Add
328 # to this list to register other decorators that produce valid properties.
329 # These decorators are taken in consideration only for invalid-name.
330 property-classes=abc.abstractproperty
331
332 # Naming style matching correct variable names.
333 variable-naming-style=snake_case
334
335 # Regular expression matching correct variable names. Overrides variable-
336 # naming-style.
337 #variable-rgx=
338
339
340 [FORMAT]
341
342 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
343 expected-line-ending-format=
344
345 # Regexp for a line that is allowed to be longer than the limit.
346 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
347
348 # Number of spaces of indent required inside a hanging or continued line.
349 indent-after-paren=4
350
351 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
352 # tab).
353 indent-string=' '
354
355 # Maximum number of characters on a single line.
356 max-line-length=120
357
358 # Maximum number of lines in a module.
359 max-module-lines=1000
360
361 # Allow the body of a class to be on the same line as the declaration if body
362 # contains single statement.
363 single-line-class-stmt=no
364
365 # Allow the body of an if to be on the same line as the test if there is no
366 # else.
367 single-line-if-stmt=no
368
369
370 [LOGGING]
371
372 # The type of string formatting that logging methods do. `old` means using %
373 # formatting, `new` is for `{}` formatting.
374 logging-format-style=old
375
376 # Logging modules to check that the string format arguments are in logging
377 # function parameter format.
378 logging-modules=logging
379
380
381 [MISCELLANEOUS]
382
383 # List of note tags to take in consideration, separated by a comma.
384 notes=FIXME,
385 XXX,
386 TODO
387
388 # Regular expression of note tags to take in consideration.
389 #notes-rgx=
390
391
392 [SIMILARITIES]
393
394 # Ignore comments when computing similarities.
395 ignore-comments=yes
396
397 # Ignore docstrings when computing similarities.
398 ignore-docstrings=yes
399
400 # Ignore imports when computing similarities.
401 ignore-imports=no
402
403 # Minimum lines number of a similarity.
404 min-similarity-lines=4
405
406
407 [SPELLING]
408
409 # Limits count of emitted suggestions for spelling mistakes.
410 max-spelling-suggestions=4
411
412 # Spelling dictionary name. Available dictionaries: none. To make it work,
413 # install the python-enchant package.
414 spelling-dict=
415
416 # List of comma separated words that should not be checked.
417 spelling-ignore-words=
418
419 # A path to a file that contains the private dictionary; one word per line.
420 spelling-private-dict-file=
421
422 # Tells whether to store unknown words to the private dictionary (see the
423 # --spelling-private-dict-file option) instead of raising a message.
424 spelling-store-unknown-words=no
425
426
427 [STRING]
428
429 # This flag controls whether inconsistent-quotes generates a warning when the
430 # character used as a quote delimiter is used inconsistently within a module.
431 check-quote-consistency=no
432
433 # This flag controls whether the implicit-str-concat should generate a warning
434 # on implicit string concatenation in sequences defined over several lines.
435 check-str-concat-over-line-jumps=no
436
437
438 [TYPECHECK]
439
440 # List of decorators that produce context managers, such as
441 # contextlib.contextmanager. Add to this list to register other decorators that
442 # produce valid context managers.
443 contextmanager-decorators=contextlib.contextmanager
444
445 # List of members which are set dynamically and missed by pylint inference
446 # system, and so shouldn't trigger E1101 when accessed. Python regular
447 # expressions are accepted.
448 generated-members=
449
450 # Tells whether missing members accessed in mixin class should be ignored. A
451 # mixin class is detected if its name ends with "mixin" (case insensitive).
452 ignore-mixin-members=yes
453
454 # Tells whether to warn about missing members when the owner of the attribute
455 # is inferred to be None.
456 ignore-none=yes
457
458 # This flag controls whether pylint should warn about no-member and similar
459 # checks whenever an opaque object is returned when inferring. The inference
460 # can return multiple potential results while evaluating a Python object, but
461 # some branches might not be evaluated, which results in partial inference. In
462 # that case, it might be useful to still emit no-member and other checks for
463 # the rest of the inferred objects.
464 ignore-on-opaque-inference=yes
465
466 # List of class names for which member attributes should not be checked (useful
467 # for classes with dynamically set attributes). This supports the use of
468 # qualified names.
469 ignored-classes=optparse.Values,thread._local,_thread._local
470
471 # List of module names for which member attributes should not be checked
472 # (useful for modules/projects where namespaces are manipulated during runtime
473 # and thus existing member attributes cannot be deduced by static analysis). It
474 # supports qualified module names, as well as Unix pattern matching.
475 ignored-modules=
476
477 # Show a hint with possible names when a member name was not found. The aspect
478 # of finding the hint is based on edit distance.
479 missing-member-hint=yes
480
481 # The minimum edit distance a name should have in order to be considered a
482 # similar match for a missing member name.
483 missing-member-hint-distance=1
484
485 # The total number of similar names that should be taken in consideration when
486 # showing a hint for a missing member.
487 missing-member-max-choices=1
488
489 # List of decorators that change the signature of a decorated function.
490 signature-mutators=
491
492
493 [VARIABLES]
494
495 # List of additional names supposed to be defined in builtins. Remember that
496 # you should avoid defining new builtins when possible.
497 additional-builtins=
498
499 # Tells whether unused global variables should be treated as a violation.
500 allow-global-unused-variables=yes
501
502 # List of strings which can identify a callback function by name. A callback
503 # name must start or end with one of those strings.
504 callbacks=cb_,
505 _cb
506
507 # A regular expression matching the name of dummy variables (i.e. expected to
508 # not be used).
509 dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
510
511 # Argument names that match this expression will be ignored. Default to name
512 # with leading underscore.
513 ignored-argument-names=_.*|^ignored_|^unused_
514
515 # Tells whether we should check for unused import in __init__ files.
516 init-import=no
517
518 # List of qualified module names which can have objects that can redefine
519 # builtins.
520 redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
521
522
523 [CLASSES]
524
525 # List of method names used to declare (i.e. assign) instance attributes.
526 defining-attr-methods=__init__,
527 __new__,
528 setUp,
529 __post_init__
530
531 # List of member names, which should be excluded from the protected access
532 # warning.
533 exclude-protected=_asdict,
534 _fields,
535 _replace,
536 _source,
537 _make
538
539 # List of valid names for the first argument in a class method.
540 valid-classmethod-first-arg=cls
541
542 # List of valid names for the first argument in a metaclass class method.
543 valid-metaclass-classmethod-first-arg=cls
544
545
546 [DESIGN]
547
548 # Maximum number of arguments for function / method.
549 max-args=5
550
551 # Maximum number of attributes for a class (see R0902).
552 max-attributes=7
553
554 # Maximum number of boolean expressions in an if statement (see R0916).
555 max-bool-expr=5
556
557 # Maximum number of branch for function / method body.
558 max-branches=12
559
560 # Maximum number of locals for function / method body.
561 max-locals=15
562
563 # Maximum number of parents for a class (see R0901).
564 max-parents=7
565
566 # Maximum number of public methods for a class (see R0904).
567 max-public-methods=20
568
569 # Maximum number of return / yield for function / method body.
570 max-returns=6
571
572 # Maximum number of statements in function / method body.
573 max-statements=50
574
575 # Minimum number of public methods for a class (see R0903).
576 min-public-methods=2
577
578
579 [IMPORTS]
580
581 # List of modules that can be imported at any level, not just the top level
582 # one.
583 allow-any-import-level=
584
585 # Allow wildcard imports from modules that define __all__.
586 allow-wildcard-with-all=no
587
588 # Analyse import fallback blocks. This can be used to support both Python 2 and
589 # 3 compatible code, which means that the block might have code that exists
590 # only in one or another interpreter, leading to false positives when analysed.
591 analyse-fallback-blocks=no
592
593 # Deprecated modules which should not be used, separated by a comma.
594 deprecated-modules=optparse,tkinter.tix
595
596 # Create a graph of external dependencies in the given file (report RP0402 must
597 # not be disabled).
598 ext-import-graph=
599
600 # Create a graph of every (i.e. internal and external) dependencies in the
601 # given file (report RP0402 must not be disabled).
602 import-graph=
603
604 # Create a graph of internal dependencies in the given file (report RP0402 must
605 # not be disabled).
606 int-import-graph=
607
608 # Force import order to recognize a module as part of the standard
609 # compatibility libraries.
610 known-standard-library=
611
612 # Force import order to recognize a module as part of a third party library.
613 known-third-party=enchant
614
615 # Couples of modules and preferred modules, separated by a comma.
616 preferred-modules=
617
618
619 [EXCEPTIONS]
620
621 # Exceptions that will emit a warning when being caught. Defaults to
622 # "BaseException, Exception".
623 overgeneral-exceptions=builtin.BaseException,
624 builtin.Exception