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