Spaces:
Runtime error
Runtime error
[MESSAGES CONTROL] | |
disable=R,W,bad-option-value,trailing-newlines,no-name-in-module | |
[REPORTS] | |
# Tells whether to display a full report or only the messages | |
reports=no | |
# Activate the evaluation score. | |
score=no | |
[BASIC] | |
# Regular expression matching correct argument names | |
argument-rgx=^[a-z][a-z0-9_]*$ | |
# Regular expression matching correct attribute names | |
attr-rgx=^_{0,2}[a-z][a-z0-9_]*$ | |
# Regular expression matching correct class attribute names | |
class-attribute-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$ | |
# Regular expression matching correct class names | |
class-rgx=^_?[A-Z][a-zA-Z0-9]*$ | |
# Regular expression matching correct constant names | |
const-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$ | |
# Minimum line length for functions/classes that require docstrings, shorter | |
# ones are exempt. | |
docstring-min-length=10 | |
# Regular expression matching correct function names | |
function-rgx=^(?:(?P<camel_case>_?[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_?[a-z][a-z0-9_]*))$ | |
# Good variable names which should always be accepted, separated by a comma | |
good-names=main,_ | |
# Regular expression matching correct inline iteration names | |
inlinevar-rgx=^[a-z][a-z0-9_]*$ | |
# Regular expression matching 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_]*)|(setUp|tearDown))$ | |
# Regular expression matching correct module names | |
module-rgx=^(_?[a-z][a-z0-9_]*)|__init__|PRESUBMIT|PRESUBMIT_unittest$ | |
# Regular expression which should only match function or class names that do | |
# not require a docstring. | |
no-docstring-rgx=(__.*__|main|.*ArgParser) | |
# Naming hint for variable names | |
variable-name-hint=[a-z_][a-z0-9_]{2,30}$ | |
# Regular expression matching correct variable names | |
variable-rgx=^[a-z][a-z0-9_]*$ | |
[TYPECHECK] | |
# List of module names for which member attributes should not be checked | |
# (useful for modules/projects where namespaces are manipulated during runtime | |
# and thus existing member attributes cannot be deduced by static analysis. It | |
# supports qualified module names, as well as Unix pattern matching. | |
ignored-modules=absl, absl.*, official, official.*, tensorflow, tensorflow.*, LazyLoader, google, google.cloud.* | |
[CLASSES] | |
# List of method names used to declare (i.e. assign) instance attributes. | |
defining-attr-methods=__init__,__new__,setUp | |
# List of member names, which should be excluded from the protected access | |
# warning. | |
exclude-protected=_asdict,_fields,_replace,_source,_make | |
# This is deprecated, because it is not used anymore. | |
#ignore-iface-methods= | |
# List of valid names for the first argument in a class method. | |
valid-classmethod-first-arg=cls,class_ | |
# List of valid names for the first argument in a metaclass class method. | |
valid-metaclass-classmethod-first-arg=mcs | |
[DESIGN] | |
# Argument names that match this expression will be ignored. Default to name | |
# with leading underscore | |
ignored-argument-names=_.* | |
# Maximum number of arguments for function / method | |
max-args=5 | |
# Maximum number of attributes for a class (see R0902). | |
max-attributes=7 | |
# Maximum number of branch for function / method body | |
max-branches=12 | |
# Maximum number of locals for function / method body | |
max-locals=15 | |
# Maximum number of parents for a class (see R0901). | |
max-parents=7 | |
# Maximum number of public methods for a class (see R0904). | |
max-public-methods=20 | |
# Maximum number of return / yield for function / method body | |
max-returns=6 | |
# Maximum number of statements in function / method body | |
max-statements=50 | |
# Minimum number of public methods for a class (see R0903). | |
min-public-methods=2 | |
[EXCEPTIONS] | |
# Exceptions that will emit a warning when being caught. Defaults to | |
# "Exception" | |
overgeneral-exceptions=StandardError,Exception,BaseException | |
[FORMAT] | |
# Number of spaces of indent required inside a hanging or continued line. | |
indent-after-paren=4 | |
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 | |
# tab). | |
indent-string=' ' | |
# Maximum number of characters on a single line. | |
max-line-length=80 | |
# Maximum number of lines in a module | |
max-module-lines=99999 | |
# List of optional constructs for which whitespace checking is disabled | |
no-space-check= | |
# Allow the body of an if to be on the same line as the test if there is no | |
# else. | |
single-line-if-stmt=yes | |
# Allow URLs and comment type annotations to exceed the max line length as neither can be easily | |
# split across lines. | |
ignore-long-lines=^\s*(?:(# )?<?https?://\S+>?$|# type:) | |
[VARIABLES] | |
# List of additional names supposed to be defined in builtins. Remember that | |
# you should avoid to define new builtins when possible. | |
additional-builtins= | |
# List of strings which can identify a callback function by name. A callback | |
# name must start or end with one of those strings. | |
callbacks=cb_,_cb | |
# A regular expression matching the name of dummy variables (i.e. expectedly | |
# not used). | |
dummy-variables-rgx=^\*{0,2}(_$|unused_|dummy_) | |
# Tells whether we should check for unused import in __init__ files. | |
init-import=no | |