Debian Codegraph @

.pylintrc_ipynb

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