Debian Codegraph @

.pylintrc

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