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