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