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