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