comparison pylintrc @ 3877:00212260f659

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