Debian Codegraph @

pylint.ini

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