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
6 extension-pkg-whitelist=
8 # Add files or directories to the blacklist. They should be base names, not
12 # Add files or directories matching the regex patterns to the blacklist. The
13 # regex matches against base names, not paths.
16 # Python code to execute, usually for sys.path manipulation such as
20 # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
21 # number of processors available to use.
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
29 # List of plugins (as comma separated values of python modules names) to load,
30 # usually to register additional checkers.
33 # Pickle collected data for later comparisons.
36 # Specify a configuration file.
39 # When enabled, pylint would attempt to guess common misconfiguration and emit
40 # user-friendly hints instead of false-positive error messages.
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
50 # Only show warnings with the listed confidence levels. Leave empty to show
51 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
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
63 disable=print-statement,
71 import-star-module-level,
72 non-ascii-bytes-literal,
80 use-symbolic-message-instead,
91 standarderror-builtin,
103 metaclass-assignment,
115 map-builtin-not-iterating,
116 zip-builtin-not-iterating,
117 range-builtin-not-iterating,
118 filter-builtin-not-iterating,
124 exception-message-attribute,
128 deprecated-string-function,
129 deprecated-str-translate-call,
130 deprecated-itertools-function,
131 deprecated-types-field,
133 dict-items-not-iterating,
134 dict-keys-not-iterating,
135 dict-values-not-iterating,
136 deprecated-operator-function,
137 deprecated-urllib-function,
138 xreadlines-attribute,
139 deprecated-sys-function,
141 comprehension-escape,
147 # Enable the message, report, category or checker with the given id(s). You can
148 # either give multiple identifier separated by comma (,) or put this option
149 # multiple time (only on the command line, not in the configuration file where
150 # it should appear only once). See also the "--disable" option for examples.
151 enable=c-extension-no-member
156 # Python expression which should return a note less than 10 (10 is the highest
157 # note). You have access to the variables errors warning, statement which
158 # respectively contain the number of errors / warnings messages and the total
159 # number of statements analyzed. This is used by the global evaluation report
161 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
163 # Template used to display messages. This is a python new-style format string
164 # used to format the message information. See doc for all details.
167 # Set the output format. Available formats are text, parseable, colorized, json
168 # and msvs (visual studio). You can also give a reporter class, e.g.
169 # mypackage.mymodule.MyReporterClass.
172 # Tells whether to display a full report or only the messages.
175 # Activate the evaluation score.
181 # Maximum number of nested blocks for function / method body
184 # Complete name of functions that never returns. When checking for
185 # inconsistent-return-statements if a never returning function is called then
186 # it will be considered as an explicit return statement and no message will be
188 never-returning-functions=sys.exit
193 # Naming style matching correct argument names.
194 argument-naming-style=snake_case
196 # Regular expression matching correct argument names. Overrides argument-
200 # Naming style matching correct attribute names.
201 attr-naming-style=snake_case
203 # Regular expression matching correct attribute names. Overrides attr-naming-
207 # Bad variable names which should always be refused, separated by a comma.
215 # Naming style matching correct class attribute names.
216 class-attribute-naming-style=any
218 # Regular expression matching correct class attribute names. Overrides class-
219 # attribute-naming-style.
220 #class-attribute-rgx=
222 # Naming style matching correct class names.
223 class-naming-style=PascalCase
225 # Regular expression matching correct class names. Overrides class-naming-
229 # Naming style matching correct constant names.
230 const-naming-style=UPPER_CASE
232 # Regular expression matching correct constant names. Overrides const-naming-
236 # Minimum line length for functions/classes that require docstrings, shorter
238 docstring-min-length=-1
240 # Naming style matching correct function names.
241 function-naming-style=snake_case
243 # Regular expression matching correct function names. Overrides function-
247 # Good variable names which should always be accepted, separated by a comma.
255 # Include a hint for the correct naming format with invalid-name.
256 include-naming-hint=no
258 # Naming style matching correct inline iteration names.
259 inlinevar-naming-style=any
261 # Regular expression matching correct inline iteration names. Overrides
262 # inlinevar-naming-style.
265 # Naming style matching correct method names.
266 method-naming-style=snake_case
268 # Regular expression matching correct method names. Overrides method-naming-
272 # Naming style matching correct module names.
273 module-naming-style=snake_case
275 # Regular expression matching correct module names. Overrides module-naming-
279 # Colon-delimited sets of names that determine each other's naming style when
280 # the name regexes allow several styles.
283 # Regular expression which should only match function or class names that do
284 # not require a docstring.
287 # List of decorators that produce properties, such as abc.abstractproperty. Add
288 # to this list to register other decorators that produce valid properties.
289 # These decorators are taken in consideration only for invalid-name.
290 property-classes=abc.abstractproperty
292 # Naming style matching correct variable names.
293 variable-naming-style=snake_case
295 # Regular expression matching correct variable names. Overrides variable-
302 # Limits count of emitted suggestions for spelling mistakes.
303 max-spelling-suggestions=4
305 # Spelling dictionary name. Available dictionaries: none. To make it working
306 # install python-enchant package..
309 # List of comma separated words that should not be checked.
310 spelling-ignore-words=
312 # A path to a file that contains private dictionary; one word per line.
313 spelling-private-dict-file=
315 # Tells whether to store unknown words to indicated private dictionary in
316 # --spelling-private-dict-file option instead of raising a message.
317 spelling-store-unknown-words=no
322 # This flag controls whether the implicit-str-concat-in-sequence should
323 # generate a warning on implicit string concatenation in sequences defined over
325 check-str-concat-over-line-jumps=no
330 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
331 expected-line-ending-format=
333 # Regexp for a line that is allowed to be longer than the limit.
334 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
336 # Number of spaces of indent required inside a hanging or continued line.
339 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
343 # Maximum number of characters on a single line.
346 # Maximum number of lines in a module.
347 max-module-lines=1000
349 # List of optional constructs for which whitespace checking is disabled. `dict-
350 # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
351 # `trailing-comma` allows a space between comma and closing bracket: (a, ).
352 # `empty-line` allows space-only lines.
353 no-space-check=trailing-comma,
356 # Allow the body of a class to be on the same line as the declaration if body
357 # contains single statement.
358 single-line-class-stmt=no
360 # Allow the body of an if to be on the same line as the test if there is no
362 single-line-if-stmt=no
367 # List of decorators that produce context managers, such as
368 # contextlib.contextmanager. Add to this list to register other decorators that
369 # produce valid context managers.
370 contextmanager-decorators=contextlib.contextmanager
372 # List of members which are set dynamically and missed by pylint inference
373 # system, and so shouldn't trigger E1101 when accessed. Python regular
374 # expressions are accepted.
377 # Tells whether missing members accessed in mixin class should be ignored. A
378 # mixin class is detected if its name ends with "mixin" (case insensitive).
379 ignore-mixin-members=yes
381 # Tells whether to warn about missing members when the owner of the attribute
382 # is inferred to be None.
385 # This flag controls whether pylint should warn about no-member and similar
386 # checks whenever an opaque object is returned when inferring. The inference
387 # can return multiple potential results while evaluating a Python object, but
388 # some branches might not be evaluated, which results in partial inference. In
389 # that case, it might be useful to still emit no-member and other checks for
390 # the rest of the inferred objects.
391 ignore-on-opaque-inference=yes
393 # List of class names for which member attributes should not be checked (useful
394 # for classes with dynamically set attributes). This supports the use of
396 ignored-classes=optparse.Values,thread._local,_thread._local
398 # List of module names for which member attributes should not be checked
399 # (useful for modules/projects where namespaces are manipulated during runtime
400 # and thus existing member attributes cannot be deduced by static analysis. It
401 # supports qualified module names, as well as Unix pattern matching.
404 # Show a hint with possible names when a member name was not found. The aspect
405 # of finding the hint is based on edit distance.
406 missing-member-hint=yes
408 # The minimum edit distance a name should have in order to be considered a
409 # similar match for a missing member name.
410 missing-member-hint-distance=1
412 # The total number of similar names that should be taken in consideration when
413 # showing a hint for a missing member.
414 missing-member-max-choices=1
419 # List of additional names supposed to be defined in builtins. Remember that
420 # you should avoid defining new builtins when possible.
423 # Tells whether unused global variables should be treated as a violation.
424 allow-global-unused-variables=yes
426 # List of strings which can identify a callback function by name. A callback
427 # name must start or end with one of those strings.
431 # A regular expression matching the name of dummy variables (i.e. expected to
433 dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
435 # Argument names that match this expression will be ignored. Default to name
436 # with leading underscore.
437 ignored-argument-names=_.*|^ignored_|^unused_
439 # Tells whether we should check for unused import in __init__ files.
442 # List of qualified module names which can have objects that can redefine
444 redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
449 # List of note tags to take in consideration, separated by a comma.
457 # Format style used to check logging format string. `old` means using %
458 # formatting, while `new` is for `{}` formatting.
459 logging-format-style=old
461 # Logging modules to check that the string format arguments are in logging
462 # function parameter format.
463 logging-modules=logging
468 # Ignore comments when computing similarities.
471 # Ignore docstrings when computing similarities.
472 ignore-docstrings=yes
474 # Ignore imports when computing similarities.
477 # Minimum lines number of a similarity.
478 min-similarity-lines=4
483 # Allow wildcard imports from modules that define __all__.
484 allow-wildcard-with-all=no
486 # Analyse import fallback blocks. This can be used to support both Python 2 and
487 # 3 compatible code, which means that the block might have code that exists
488 # only in one or another interpreter, leading to false positives when analysed.
489 analyse-fallback-blocks=no
491 # Deprecated modules which should not be used, separated by a comma.
492 deprecated-modules=optparse,tkinter.tix
494 # Create a graph of external dependencies in the given file (report RP0402 must
498 # Create a graph of every (i.e. internal and external) dependencies in the
499 # given file (report RP0402 must not be disabled).
502 # Create a graph of internal dependencies in the given file (report RP0402 must
506 # Force import order to recognize a module as part of the standard
507 # compatibility libraries.
508 known-standard-library=
510 # Force import order to recognize a module as part of a third party library.
511 known-third-party=enchant
516 # List of method names used to declare (i.e. assign) instance attributes.
517 defining-attr-methods=__init__,
521 # List of member names, which should be excluded from the protected access
523 exclude-protected=_asdict,
529 # List of valid names for the first argument in a class method.
530 valid-classmethod-first-arg=cls
532 # List of valid names for the first argument in a metaclass class method.
533 valid-metaclass-classmethod-first-arg=cls
538 # Maximum number of arguments for function / method.
541 # Maximum number of attributes for a class (see R0902).
544 # Maximum number of boolean expressions in an if statement.
547 # Maximum number of branch for function / method body.
550 # Maximum number of locals for function / method body.
553 # Maximum number of parents for a class (see R0901).
556 # Maximum number of public methods for a class (see R0904).
557 max-public-methods=20
559 # Maximum number of return / yield for function / method body.
562 # Maximum number of statements in function / method body.
565 # Minimum number of public methods for a class (see R0903).
571 # Exceptions that will emit a warning when being caught. Defaults to
572 # "BaseException, Exception".
573 overgeneral-exceptions=BaseException,