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