|
- [MESSAGES CONTROL]
-
- # Enable the message, report, category or checker with the given id(s). You can
- # either give multiple identifier separated by comma (,) or put this option
- # multiple time. See also the "--disable" option for examples.
- enable=indexing-exception,old-raise-syntax
-
- # Disable the message, report, category or checker with the given id(s). You
- # can either give multiple identifiers separated by comma (,) or put this
- # option multiple times (only on the command line, not in the configuration
- # file where it should appear only once).You can also use "--disable=all" to
- # disable everything first and then reenable specific checks. For example, if
- # you want to run only the similarities checker, you can use "--disable=all
- # --enable=similarities". If you want to run only the classes checker, but have
- # no Warning level messages displayed, use"--disable=all --enable=classes
- # --disable=W"
- disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,no-member,no-name-in-module,import-error,unsubscriptable-object,unbalanced-tuple-unpacking,undefined-variable,not-context-manager
-
-
- # Set the cache size for astng objects.
- cache-size=500
-
-
- [BASIC]
-
- # Required attributes for module, separated by a comma
- required-attributes=
-
- # List of builtins function names that should not be used, separated by a comma
- bad-functions=apply,input,reduce
-
-
- # Disable the report(s) with the given id(s).
- # All non-Google reports are disabled by default.
- disable-report=R0001,R0002,R0003,R0004,R0101,R0102,R0201,R0202,R0220,R0401,R0402,R0701,R0801,R0901,R0902,R0903,R0904,R0911,R0912,R0913,R0914,R0915,R0921,R0922,R0923
-
- # Regular expression which should only match correct module names
- module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
-
- # Regular expression which should only match correct module level names
- const-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$
-
- # Regular expression which should only match correct class names
- class-rgx=^_?[A-Z][a-zA-Z0-9]*$
-
- # Regular expression which should only match correct function names
- function-rgx=^(?:(?P<camel_case>_?[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_?[a-z][a-z0-9_]*))$
-
- # Regular expression which should only match correct method names
- method-rgx=^(?:(?P<exempt>__[a-z0-9_]+__|next)|(?P<camel_case>_{0,2}[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_{0,2}[a-z][a-z0-9_]*))$
-
- # Regular expression which should only match correct instance attribute names
- attr-rgx=^_{0,2}[a-z][a-z0-9_]*$
-
- # Regular expression which should only match correct argument names
- argument-rgx=^[a-z][a-z0-9_]*$
-
- # Regular expression which should only match correct variable names
- variable-rgx=^[a-z][a-z0-9_]*$
-
- # Regular expression which should only match correct attribute names in class
- # bodies
- class-attribute-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$
-
- # Regular expression which should only match correct list comprehension /
- # generator expression variable names
- inlinevar-rgx=^[a-z][a-z0-9_]*$
-
- # Good variable names which should always be accepted, separated by a comma
- good-names=main,_
-
- # Bad variable names which should always be refused, separated by a comma
- bad-names=
-
- # Regular expression which should only match function or class names that do
- # not require a docstring.
- no-docstring-rgx=(__.*__|main)
-
- # Minimum line length for functions/classes that require docstrings, shorter
- # ones are exempt.
- docstring-min-length=10
-
- [EXCEPTIONS]
-
- # Exceptions that will emit a warning when being caught. Defaults to
- # "Exception"
- overgeneral-exceptions=Exception,StandardError,BaseException
-
-
- [AST]
-
- # Maximum line length for lambdas
- short-func-length=1
-
- # List of module members that should be marked as deprecated.
- # All of the string functions are listed in 4.1.4 Deprecated string functions
- # in the Python 2.4 docs.
- deprecated-members=string.atof,string.atoi,string.atol,string.capitalize,string.expandtabs,string.find,string.rfind,string.index,string.rindex,string.count,string.lower,string.split,string.rsplit,string.splitfields,string.join,string.joinfields,string.lstrip,string.rstrip,string.strip,string.swapcase,string.translate,string.upper,string.ljust,string.rjust,string.center,string.zfill,string.replace,sys.exitfunc
-
-
- [DOCSTRING]
-
- # List of exceptions that do not need to be mentioned in the Raises section of
- # a docstring.
- ignore-exceptions=AssertionError,NotImplementedError,StopIteration,TypeError
-
- [FORMAT]
- max-line-length=80
|