Debian Codegraph @

.pylintrc

raw
1 [MASTER]
2
3 # Specify a configuration file.
4 #rcfile=
5
6 # Python code to execute, usually for sys.path manipulation such as
7 # pygtk.require().
8 #init-hook=
9
10 # Profiled execution.
11 profile=no
12
13 # Add files or directories to the blacklist. They should be base names, not
14 # paths.
15 ignore=CVS,_version.py
16
17 # Pickle collected data for later comparisons.
18 persistent=yes
19
20 # List of plugins (as comma separated values of python modules names) to load,
21 # usually to register additional checkers.
22 load-plugins=
23
24 # Use multiple processes to speed up Pylint.
25 jobs=1
26
27 # Allow loading of arbitrary C extensions. Extensions are imported into the
28 # active Python interpreter and may run arbitrary code.
29 unsafe-load-any-extension=no
30
31 # A comma-separated list of package or module names from where C extensions may
32 # be loaded. Extensions are loading into the active Python interpreter and may
33 # run arbitrary code
34 extension-pkg-whitelist=
35
36 # Fileperms Lint Plugin Settings
37 fileperms-default=0644
38 fileperms-ignore-paths=setup.py
39
40 [MESSAGES CONTROL]
41
42 # Only show warnings with the listed confidence levels. Leave empty to show
43 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
44 confidence=
45
46 # Enable the message, report, category or checker with the given id(s). You can
47 # either give multiple identifier separated by comma (,) or put this option
48 # multiple time. See also the "--disable" option for examples.
49 #enable=
50
51 # Disable the message, report, category or checker with the given id(s). You
52 # can either give multiple identifiers separated by comma (,) or put this
53 # option multiple times (only on the command line, not in the configuration
54 # file where it should appear only once).You can also use "--disable=all" to
55 # disable everything first and then reenable specific checks. For example, if
56 # you want to run only the similarities checker, you can use "--disable=all
57 # --enable=similarities". If you want to run only the classes checker, but have
58 # no Warning level messages displayed, use"--disable=all --enable=classes
59 # --disable=W"
60 #disable=
61 disable=R,
62 I0011,
63 I0012,
64 I0013,
65 E1101,
66 E1103,
67 C0102,
68 C0103,
69 C0111,
70 C0203,
71 C0204,
72 C0301,
73 C0302,
74 C0330,
75 W0110,
76 W0122,
77 W0142,
78 W0201,
79 W0212,
80 W0404,
81 W0511,
82 W0603,
83 W0612,
84 W0613,
85 W0621,
86 W0622,
87 W0631,
88 W0704,
89 W1202,
90 W1307,
91 F0220,
92 F0401,
93 E8501,
94 E8116,
95 E8121,
96 E8122,
97 E8123,
98 E8124,
99 E8125,
100 E8126,
101 E8127,
102 E8128,
103 E8129,
104 E8131,
105 E8265,
106 E8266,
107 E8402,
108 E8731,
109 locally-disabled,
110 repr-flag-used-in-string,
111 un-indexed-curly-braces-error,
112 un-indexed-curly-braces-warning,
113 import-outside-toplevel,
114 wrong-import-position,
115 wrong-import-order,
116 missing-whitespace-after-comma,
117 consider-using-f-string
118
119 # Disabled:
120 # R* [refactoring suggestions & reports]
121 # I0011 (locally-disabling)
122 # I0012 (locally-enabling)
123 # I0013 (file-ignored)
124 # E1101 (no-member) [pylint isn't smart enough]
125 # E1103 (maybe-no-member)
126 # C0102 (blacklisted-name) [because it activates C0103 too]
127 # C0103 (invalid-name)
128 # C0111 (missing-docstring)
129 # C0203 (bad-mcs-method-argument)
130 # C0204 (bad-mcs-classmethod-argument)
131 # C0301 (line-too-long)
132 # C0302 (too-many-lines)
133 # C0330 (bad-continuation)
134 # W0110 (deprecated-lambda)
135 # W0122 (exec-statement)
136 # W0142 (star-args)
137 # W0201 (attribute-defined-outside-init) [done in several places in the codebase]
138 # W0212 (protected-access)
139 # W0404 (reimported) [done intentionally for legit reasons]
140 # W0511 (fixme) [several outstanding instances currently in the codebase]
141 # W0603 (global-statement)
142 # W0612 (unused-variable) [unused return values]
143 # W0613 (unused-argument)
144 # W0621 (redefined-outer-name)
145 # W0622 (redefined-builtin) [many parameter names shadow builtins]
146 # W0631 (undefined-loop-variable) [~3 instances, seem to be okay]
147 # W0704 (pointless-except) [misnomer; "ignores the exception" rather than "pointless"]
148 # F0220 (unresolved-interface)
149 # F0401 (import-error)
150 # W1202 (logging-format-interpolation) Use % formatting in logging functions but pass the % parameters as arguments
151 # W1307 (invalid-format-index) Using invalid lookup key '%s' in format specifier "0['%s']"
152 #
153 # E8116 PEP8 E116: unexpected indentation (comment)
154 # E812* All PEP8 E12*
155 # E8265 PEP8 E265 - block comment should start with "# "
156 # E8266 PEP8 E266 - too many leading '#' for block comment
157 # E8501 PEP8 line too long
158 # E8402 module level import not at top of file
159 # E8731 do not assign a lambda expression, use a def
160 #
161 # E1322(repr-flag-used-in-string)
162
163 [REPORTS]
164
165 # Set the output format. Available formats are text, parseable, colorized, msvs
166 # (visual studio) and html. You can also give a reporter class, eg
167 # mypackage.mymodule.MyReporterClass.
168 output-format=text
169
170 # Put messages in a separate file for each module / package specified on the
171 # command line instead of printing them on stdout. Reports (if any) will be
172 # written in a file name "pylint_global.[txt|html]".
173 files-output=no
174
175 # Tells whether to display a full report or only the messages
176 reports=no
177
178 # Python expression which should return a note less than 10 (10 is the highest
179 # note). You have access to the variables errors warning, statement which
180 # respectively contain the number of errors / warnings messages and the total
181 # number of statements analyzed. This is used by the global evaluation report
182 # (RP0004).
183 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
184
185 # Add a comment according to your evaluation note. This is used by the global
186 # evaluation report (RP0004).
187 comment=no
188
189 # Template used to display messages. This is a python new-style format string
190 # used to format the message information. See doc for all details
191 #msg-template=
192
193
194 [LOGGING]
195
196 # Logging modules to check that the string format arguments are in logging
197 # function parameter format
198 logging-modules=logging
199
200
201 [SPELLING]
202
203 # Spelling dictionary name. Available dictionaries: none. To make it working
204 # install python-enchant package.
205 spelling-dict=en_US
206
207 # List of comma separated words that should not be checked.
208 spelling-ignore-words=
209
210 # A path to a file that contains private dictionary; one word per line.
211 spelling-private-dict-file=.pylint-spelling-words
212
213 # Tells whether to store unknown words to indicated private dictionary in
214 # --spelling-private-dict-file option instead of raising a message.
215 spelling-store-unknown-words=no
216
217
218 [SIMILARITIES]
219
220 # Minimum lines number of a similarity.
221 min-similarity-lines=4
222
223 # Ignore comments when computing similarities.
224 ignore-comments=yes
225
226 # Ignore docstrings when computing similarities.
227 ignore-docstrings=yes
228
229 # Ignore imports when computing similarities.
230 ignore-imports=no
231
232
233 [VARIABLES]
234
235 # Tells whether we should check for unused import in __init__ files.
236 init-import=no
237
238 # A regular expression matching the name of dummy variables (i.e. expectedly
239 # not used).
240 dummy-variables-rgx=_$|dummy
241
242 # List of additional names supposed to be defined in builtins. Remember that
243 # you should avoid to define new builtins when possible.
244 additional-builtins=__opts__,__virtual__,__salt_system_encoding__,__context__,__salt__
245
246 # List of strings which can identify a callback function by name. A callback
247 # name must start or end with one of those strings.
248 callbacks=cb_,_cb
249
250
251 [MISCELLANEOUS]
252
253 # List of note tags to take in consideration, separated by a comma.
254 notes=FIXME,XXX,TODO
255
256
257 [BASIC]
258
259 # List of builtins function names that should not be used, separated by a comma
260 bad-functions=map,filter,input
261
262 # Good variable names which should always be accepted, separated by a comma
263 good-names=i,j,k,ex,Run,_,log,pytest_plugins,__opts__,__context__
264
265 # Bad variable names which should always be refused, separated by a comma
266 bad-names=foo,bar,baz,toto,tutu,tata
267
268 # Colon-delimited sets of names that determine each other's naming style when
269 # the name regexes allow several styles.
270 name-group=
271
272 # Include a hint for the correct naming format with invalid-name
273 include-naming-hint=no
274
275 # Regular expression matching correct function names
276 function-rgx=[a-z_][a-z0-9_]{2,60}$
277
278 # Naming hint for function names
279 function-name-hint=[a-z_][a-z0-9_]{2,60}$
280
281 # Regular expression matching correct variable names
282 variable-rgx=[a-z_][a-z0-9_]{2,60}$
283
284 # Naming hint for variable names
285 variable-name-hint=[a-z_][a-z0-9_]{2,60}$
286
287 # Regular expression matching correct constant names
288 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
289
290 # Naming hint for constant names
291 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
292
293 # Regular expression matching correct attribute names
294 attr-rgx=[a-z_][a-z0-9_]{2,60}$
295
296 # Naming hint for attribute names
297 attr-name-hint=[a-z_][a-z0-9_]{2,60}$
298
299 # Regular expression matching correct argument names
300 argument-rgx=[a-z_][a-z0-9_]{2,60}$
301
302 # Naming hint for argument names
303 argument-name-hint=[a-z_][a-z0-9_]{2,60}$
304
305 # Regular expression matching correct class attribute names
306 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,60}|(__.*__))$
307
308 # Naming hint for class attribute names
309 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,60}|(__.*__))$
310
311 # Regular expression matching correct inline iteration names
312 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
313
314 # Naming hint for inline iteration names
315 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
316
317 # Regular expression matching correct class names
318 class-rgx=[A-Z_][a-zA-Z0-9]+$
319
320 # Naming hint for class names
321 class-name-hint=[A-Z_][a-zA-Z0-9]+$
322
323 # Regular expression matching correct module names
324 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
325
326 # Naming hint for module names
327 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
328
329 # Regular expression matching correct method names
330 method-rgx=[a-z_][a-z0-9_]{2,60}$
331
332 # Naming hint for method names
333 method-name-hint=[a-z_][a-z0-9_]{2,60}$
334
335 # Regular expression which should only match function or class names that do
336 # not require a docstring.
337 no-docstring-rgx=__.*__
338
339 # Minimum line length for functions/classes that require docstrings, shorter
340 # ones are exempt.
341 docstring-min-length=-1
342
343
344 [FORMAT]
345
346 # Maximum number of characters on a single line.
347 max-line-length=120
348
349 # Regexp for a line that is allowed to be longer than the limit.
350 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
351
352 # Allow the body of an if to be on the same line as the test if there is no
353 # else.
354 single-line-if-stmt=no
355
356 # List of optional constructs for which whitespace checking is disabled
357 no-space-check=trailing-comma,dict-separator
358
359 # Maximum number of lines in a module
360 max-module-lines=1000
361
362 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
363 # tab).
364 indent-string=' '
365
366 # Number of spaces of indent required inside a hanging or continued line.
367 indent-after-paren=4
368
369 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
370 expected-line-ending-format=LF
371
372
373 [TYPECHECK]
374
375 # Tells whether missing members accessed in mixin class should be ignored. A
376 # mixin class is detected if its name ends with "mixin" (case insensitive).
377 ignore-mixin-members=yes
378
379 # List of module names for which member attributes should not be checked
380 # (useful for modules/projects where namespaces are manipulated during runtime
381 # and thus existing member attributes cannot be deduced by static analysis
382 ignored-modules=
383
384 # List of classes names for which member attributes should not be checked
385 # (useful for classes with attributes dynamically set).
386 ignored-classes=
387
388 # When zope mode is activated, add a predefined set of Zope acquired attributes
389 # to generated-members.
390 zope=no
391
392 # List of members which are set dynamically and missed by pylint inference
393 # system, and so shouldn't trigger E0201 when accessed. Python regular
394 # expressions are accepted.
395 generated-members=
396
397
398 [IMPORTS]
399
400 # Deprecated modules which should not be used, separated by a comma
401 deprecated-modules=regsub,TERMIOS,Bastion,rexec
402
403 # Create a graph of every (i.e. internal and external) dependencies in the
404 # given file (report RP0402 must not be disabled)
405 import-graph=
406
407 # Create a graph of external dependencies in the given file (report RP0402 must
408 # not be disabled)
409 ext-import-graph=
410
411 # Create a graph of internal dependencies in the given file (report RP0402 must
412 # not be disabled)
413 int-import-graph=
414
415
416 [DESIGN]
417
418 # Maximum number of arguments for function / method
419 max-args=5
420
421 # Argument names that match this expression will be ignored. Default to name
422 # with leading underscore
423 ignored-argument-names=_.*
424
425 # Maximum number of locals for function / method body
426 max-locals=15
427
428 # Maximum number of return / yield for function / method body
429 max-returns=6
430
431 # Maximum number of branch for function / method body
432 max-branches=12
433
434 # Maximum number of statements in function / method body
435 max-statements=50
436
437 # Maximum number of parents for a class (see R0901).
438 max-parents=7
439
440 # Maximum number of attributes for a class (see R0902).
441 max-attributes=7
442
443 # Minimum number of public methods for a class (see R0903).
444 min-public-methods=2
445
446 # Maximum number of public methods for a class (see R0904).
447 max-public-methods=20
448
449
450 [CLASSES]
451
452 # List of method names used to declare (i.e. assign) instance attributes.
453 defining-attr-methods=__init__,__new__,setUp
454
455 # List of valid names for the first argument in a class method.
456 valid-classmethod-first-arg=cls
457
458 # List of valid names for the first argument in a metaclass class method.
459 valid-metaclass-classmethod-first-arg=mcs
460
461 # List of member names, which should be excluded from the protected access
462 # warning.
463 exclude-protected=_asdict,_fields,_replace,_source,_make
464
465
466 [EXCEPTIONS]
467
468 # Exceptions that will emit a warning when being caught. Defaults to
469 # "Exception"
470 overgeneral-exceptions=Exception