Debian Codegraph @

.pylintrc

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