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=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
64 disable= R0801,
65 invalid-name,
66 missing-function-docstring,
67 unused-wildcard-import,
68 redefined-outer-name,
69 too-many-locals,
70 multiple-imports,
71 # temporarily tolerated
72 empty-docstring,
73 global-statement,
74 no-self-use,
75 line-too-long,
76 wildcard-import,
77 fixme,
78 missing-class-docstring,
79 missing-module-docstring,
80 too-few-public-methods,
81 too-many-arguments,
82 too-many-public-methods,
83 pointless-string-statement,
84 arguments-differ,
85 unused-argument,
86 no-member,
87 unexpected-keyword-arg,
88 missing-kwoa,
89 broad-except,
90 import-error,
91 unused-import,
92 wrong-import-order,
93 raise-missing-from,
94
95 # Enable the message, report, category or checker with the given id(s). You can
96 # either give multiple identifier separated by comma (,) or put this option
97 # multiple time (only on the command line, not in the configuration file where
98 # it should appear only once). See also the "--disable" option for examples.
99 enable=similarities # c-extension-no-member,
100
101 [REPORTS]
102
103 # Python expression which should return a score less than or equal to 10. You
104 # have access to the variables 'error', 'warning', 'refactor', and 'convention'
105 # which contain the number of messages in each category, as well as 'statement'
106 # which is the total number of statements analyzed. This score is used by the
107 # global evaluation report (RP0004).
108 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
109
110 # Template used to display messages. This is a python new-style format string
111 # used to format the message information. See doc for all details.
112 #msg-template=
113
114 # Set the output format. Available formats are text, parseable, colorized, json
115 # and msvs (visual studio). You can also give a reporter class, e.g.
116 # mypackage.mymodule.MyReporterClass.
117 output-format=text
118
119 # Tells whether to display a full report or only the messages.
120 reports=no
121
122 # Activate the evaluation score.
123 score=yes
124
125
126 [REFACTORING]
127
128 # Maximum number of nested blocks for function / method body
129 max-nested-blocks=5
130
131 # Complete name of functions that never returns. When checking for
132 # inconsistent-return-statements if a never returning function is called then
133 # it will be considered as an explicit return statement and no message will be
134 # printed.
135 never-returning-functions=sys.exit
136
137
138 [STRING]
139
140 # This flag controls whether inconsistent-quotes generates a warning when the
141 # character used as a quote delimiter is used inconsistently within a module.
142 check-quote-consistency=no
143
144 # This flag controls whether the implicit-str-concat should generate a warning
145 # on implicit string concatenation in sequences defined over several lines.
146 check-str-concat-over-line-jumps=no
147
148
149 [MISCELLANEOUS]
150
151 # List of note tags to take in consideration, separated by a comma.
152 notes=FIXME,
153 XXX,
154 TODO
155
156 # Regular expression of note tags to take in consideration.
157 #notes-rgx=
158
159
160 [VARIABLES]
161
162 # List of additional names supposed to be defined in builtins. Remember that
163 # you should avoid defining new builtins when possible.
164 additional-builtins=
165
166 # Tells whether unused global variables should be treated as a violation.
167 allow-global-unused-variables=yes
168
169 # List of strings which can identify a callback function by name. A callback
170 # name must start or end with one of those strings.
171 callbacks=cb_,
172 _cb
173
174 # A regular expression matching the name of dummy variables (i.e. expected to
175 # not be used).
176 dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
177
178 # Argument names that match this expression will be ignored. Default to name
179 # with leading underscore.
180 ignored-argument-names=_.*|^ignored_|^unused_
181
182 # Tells whether we should check for unused import in __init__ files.
183 init-import=no
184
185 # List of qualified module names which can have objects that can redefine
186 # builtins.
187 redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
188
189
190 [FORMAT]
191
192 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
193 expected-line-ending-format=
194
195 # Regexp for a line that is allowed to be longer than the limit.
196 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
197
198 # Number of spaces of indent required inside a hanging or continued line.
199 indent-after-paren=4
200
201 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
202 # tab).
203 indent-string=' '
204
205 # Maximum number of characters on a single line.
206 max-line-length=100
207
208 # Maximum number of lines in a module.
209 max-module-lines=1000
210
211 # Allow the body of a class to be on the same line as the declaration if body
212 # contains single statement.
213 single-line-class-stmt=no
214
215 # Allow the body of an if to be on the same line as the test if there is no
216 # else.
217 single-line-if-stmt=no
218
219
220 [LOGGING]
221
222 # The type of string formatting that logging methods do. `old` means using %
223 # formatting, `new` is for `{}` formatting.
224 logging-format-style=old
225
226 # Logging modules to check that the string format arguments are in logging
227 # function parameter format.
228 logging-modules=logging
229
230
231 [SPELLING]
232
233 # Limits count of emitted suggestions for spelling mistakes.
234 max-spelling-suggestions=4
235
236 # Spelling dictionary name. Available dictionaries: none. To make it work,
237 # install the python-enchant package.
238 spelling-dict=
239
240 # List of comma separated words that should not be checked.
241 spelling-ignore-words=
242
243 # A path to a file that contains the private dictionary; one word per line.
244 spelling-private-dict-file=
245
246 # Tells whether to store unknown words to the private dictionary (see the
247 # --spelling-private-dict-file option) instead of raising a message.
248 spelling-store-unknown-words=no
249
250
251 [BASIC]
252
253 # Naming style matching correct argument names.
254 argument-naming-style=snake_case
255
256 # Regular expression matching correct argument names. Overrides argument-
257 # naming-style.
258 #argument-rgx=
259
260 # Naming style matching correct attribute names.
261 attr-naming-style=snake_case
262
263 # Regular expression matching correct attribute names. Overrides attr-naming-
264 # style.
265 #attr-rgx=
266
267 # Bad variable names which should always be refused, separated by a comma.
268 bad-names=foo,
269 bar,
270 baz,
271 toto,
272 tutu,
273 tata
274
275 # Bad variable names regexes, separated by a comma. If names match any regex,
276 # they will always be refused
277 bad-names-rgxs=
278
279 # Naming style matching correct class attribute names.
280 class-attribute-naming-style=any
281
282 # Regular expression matching correct class attribute names. Overrides class-
283 # attribute-naming-style.
284 #class-attribute-rgx=
285
286 # Naming style matching correct class names.
287 class-naming-style=PascalCase
288
289 # Regular expression matching correct class names. Overrides class-naming-
290 # style.
291 #class-rgx=
292
293 # Naming style matching correct constant names.
294 const-naming-style=UPPER_CASE
295
296 # Regular expression matching correct constant names. Overrides const-naming-
297 # style.
298 #const-rgx=
299
300 # Minimum line length for functions/classes that require docstrings, shorter
301 # ones are exempt.
302 docstring-min-length=-1
303
304 # Naming style matching correct function names.
305 function-naming-style=snake_case
306
307 # Regular expression matching correct function names. Overrides function-
308 # naming-style.
309 #function-rgx=
310
311 # Good variable names which should always be accepted, separated by a comma.
312 good-names=i,
313 j,
314 k,
315 ex,
316 Run,
317 _
318
319 # Good variable names regexes, separated by a comma. If names match any regex,
320 # they will always be accepted
321 good-names-rgxs=
322
323 # Include a hint for the correct naming format with invalid-name.
324 include-naming-hint=no
325
326 # Naming style matching correct inline iteration names.
327 inlinevar-naming-style=any
328
329 # Regular expression matching correct inline iteration names. Overrides
330 # inlinevar-naming-style.
331 #inlinevar-rgx=
332
333 # Naming style matching correct method names.
334 method-naming-style=snake_case
335
336 # Regular expression matching correct method names. Overrides method-naming-
337 # style.
338 #method-rgx=
339
340 # Naming style matching correct module names.
341 module-naming-style=snake_case
342
343 # Regular expression matching correct module names. Overrides module-naming-
344 # style.
345 #module-rgx=
346
347 # Colon-delimited sets of names that determine each other's naming style when
348 # the name regexes allow several styles.
349 name-group=
350
351 # Regular expression which should only match function or class names that do
352 # not require a docstring.
353 no-docstring-rgx=^_
354
355 # List of decorators that produce properties, such as abc.abstractproperty. Add
356 # to this list to register other decorators that produce valid properties.
357 # These decorators are taken in consideration only for invalid-name.
358 property-classes=abc.abstractproperty
359
360 # Naming style matching correct variable names.
361 variable-naming-style=snake_case
362
363 # Regular expression matching correct variable names. Overrides variable-
364 # naming-style.
365 #variable-rgx=
366
367
368 [SIMILARITIES]
369
370 # Ignore comments when computing similarities.
371 ignore-comments=yes
372
373 # Ignore docstrings when computing similarities.
374 ignore-docstrings=yes
375
376 # Ignore imports when computing similarities.
377 ignore-imports=no
378
379 # Minimum lines number of a similarity.
380 min-similarity-lines=8
381
382
383 [TYPECHECK]
384
385 # List of decorators that produce context managers, such as
386 # contextlib.contextmanager. Add to this list to register other decorators that
387 # produce valid context managers.
388 contextmanager-decorators=contextlib.contextmanager
389
390 # List of members which are set dynamically and missed by pylint inference
391 # system, and so shouldn't trigger E1101 when accessed. Python regular
392 # expressions are accepted.
393 generated-members=
394
395 # Tells whether missing members accessed in mixin class should be ignored. A
396 # mixin class is detected if its name ends with "mixin" (case insensitive).
397 ignore-mixin-members=yes
398
399 # Tells whether to warn about missing members when the owner of the attribute
400 # is inferred to be None.
401 ignore-none=yes
402
403 # This flag controls whether pylint should warn about no-member and similar
404 # checks whenever an opaque object is returned when inferring. The inference
405 # can return multiple potential results while evaluating a Python object, but
406 # some branches might not be evaluated, which results in partial inference. In
407 # that case, it might be useful to still emit no-member and other checks for
408 # the rest of the inferred objects.
409 ignore-on-opaque-inference=yes
410
411 # List of class names for which member attributes should not be checked (useful
412 # for classes with dynamically set attributes). This supports the use of
413 # qualified names.
414 ignored-classes=optparse.Values,thread._local,_thread._local
415
416 # List of module names for which member attributes should not be checked
417 # (useful for modules/projects where namespaces are manipulated during runtime
418 # and thus existing member attributes cannot be deduced by static analysis). It
419 # supports qualified module names, as well as Unix pattern matching.
420 ignored-modules=
421
422 # Show a hint with possible names when a member name was not found. The aspect
423 # of finding the hint is based on edit distance.
424 missing-member-hint=yes
425
426 # The minimum edit distance a name should have in order to be considered a
427 # similar match for a missing member name.
428 missing-member-hint-distance=1
429
430 # The total number of similar names that should be taken in consideration when
431 # showing a hint for a missing member.
432 missing-member-max-choices=1
433
434 # List of decorators that change the signature of a decorated function.
435 signature-mutators=
436
437
438 [DESIGN]
439
440 # Maximum number of arguments for function / method.
441 max-args=5
442
443 # Maximum number of attributes for a class (see R0902).
444 max-attributes=7
445
446 # Maximum number of boolean expressions in an if statement (see R0916).
447 max-bool-expr=5
448
449 # Maximum number of branch for function / method body.
450 max-branches=12
451
452 # Maximum number of locals for function / method body.
453 max-locals=15
454
455 # Maximum number of parents for a class (see R0901).
456 max-parents=7
457
458 # Maximum number of public methods for a class (see R0904).
459 max-public-methods=20
460
461 # Maximum number of return / yield for function / method body.
462 max-returns=6
463
464 # Maximum number of statements in function / method body.
465 max-statements=50
466
467 # Minimum number of public methods for a class (see R0903).
468 min-public-methods=2
469
470
471 [CLASSES]
472
473 # Warn about protected attribute access inside special methods
474 check-protected-access-in-special-methods=no
475
476 # List of method names used to declare (i.e. assign) instance attributes.
477 defining-attr-methods=__init__,
478 __new__,
479 setUp,
480 __post_init__
481
482 # List of member names, which should be excluded from the protected access
483 # warning.
484 exclude-protected=_asdict,
485 _fields,
486 _replace,
487 _source,
488 _make
489
490 # List of valid names for the first argument in a class method.
491 valid-classmethod-first-arg=cls
492
493 # List of valid names for the first argument in a metaclass class method.
494 valid-metaclass-classmethod-first-arg=cls
495
496
497 [IMPORTS]
498
499 # List of modules that can be imported at any level, not just the top level
500 # one.
501 allow-any-import-level=
502
503 # Allow wildcard imports from modules that define __all__.
504 allow-wildcard-with-all=no
505
506 # Analyse import fallback blocks. This can be used to support both Python 2 and
507 # 3 compatible code, which means that the block might have code that exists
508 # only in one or another interpreter, leading to false positives when analysed.
509 analyse-fallback-blocks=no
510
511 # Deprecated modules which should not be used, separated by a comma.
512 deprecated-modules=optparse,tkinter.tix
513
514 # Create a graph of external dependencies in the given file (report RP0402 must
515 # not be disabled).
516 ext-import-graph=
517
518 # Create a graph of every (i.e. internal and external) dependencies in the
519 # given file (report RP0402 must not be disabled).
520 import-graph=
521
522 # Create a graph of internal dependencies in the given file (report RP0402 must
523 # not be disabled).
524 int-import-graph=
525
526 # Force import order to recognize a module as part of the standard
527 # compatibility libraries.
528 known-standard-library=
529
530 # Force import order to recognize a module as part of a third party library.
531 known-third-party=enchant
532
533 # Couples of modules and preferred modules, separated by a comma.
534 preferred-modules=
535
536
537 [EXCEPTIONS]
538
539 # Exceptions that will emit a warning when being caught. Defaults to
540 # "BaseException, Exception".
541 overgeneral-exceptions=BaseException,
542 Exception