410 lines
13 KiB
INI
410 lines
13 KiB
INI
[MASTER]
|
|
# A comma-separated list of package or module names from where C extensions may
|
|
# be loaded. Extensions are loading into the active Python interpreter and may
|
|
# run arbitrary code.
|
|
extension-pkg-allow-list=
|
|
|
|
# Specify a score threshold to be exceeded before program exits with error code.
|
|
fail-under=10.0
|
|
|
|
# Add files or directories to the blacklist. They should be base names, not
|
|
# paths.
|
|
ignore=CVS
|
|
|
|
# Add files or directories matching the regex patterns to the blacklist. The
|
|
# regex matches against base names and not paths.
|
|
ignore-patterns=
|
|
|
|
# Python code to execute, usually for sys.path manipulation such as
|
|
# pygtk.require().
|
|
#init-hook=
|
|
|
|
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
|
|
# number of processors available to use.
|
|
jobs=1
|
|
|
|
# Control the amount of potential inferences PyLint can do when analyzing open
|
|
# files. Increasing this value might help you get proper information for your
|
|
# scripts, but can also result in longer computation time. This is a trade-off
|
|
# you can make as you see fit. It defaults to 0.
|
|
limit-inference-results=100
|
|
|
|
# List of plugins (as comma separated). Plugins should always be named after
|
|
# their package or modules names, not the filename in the plugins directory.
|
|
load-plugins=
|
|
|
|
# Minimum Python version to target. Used for version dependent checks and
|
|
# annotations parsing.
|
|
py-version=3.9
|
|
|
|
# Allow optimization of some simple Pylint rules at the cost of some lost
|
|
# message locations accuracy.
|
|
unsafe-load-any-extension=no
|
|
|
|
|
|
[MESSAGES CONTROL]
|
|
|
|
# Only show warnings with the listed confidence levels. Leave empty to show
|
|
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
|
|
confidence=
|
|
|
|
# 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=
|
|
# Blender addon specific disables
|
|
wrong-import-position, # C0413: Blender requires bl_info before imports
|
|
too-many-lines, # C0302: Large addon files are acceptable
|
|
invalid-name, # C0103: Blender naming conventions (e.g., ADDON_OT_OperatorName)
|
|
too-few-public-methods, # R0903: Blender Operators have required structure
|
|
unused-argument, # W0613: Blender callbacks have required signatures
|
|
import-error, # E0401: bpy module not available in linting environment
|
|
import-outside-toplevel, # C0415: Lazy imports common in Blender addons
|
|
no-else-return, # R1705: elif after return (acceptable pattern)
|
|
too-many-return-statements,# R0911: Command routers need multiple returns
|
|
|
|
# Additional useful disables for development
|
|
fixme, # W0511: TODOs and FIXMEs in code
|
|
duplicate-code, # R0801: Similar lines in multiple locations
|
|
|
|
|
|
[REPORTS]
|
|
|
|
# Python expression which should return a score less than or equal to 10 (10 is
|
|
# the highest value). You have access to the variables 'fatal', 'error',
|
|
# 'warning', 'refactor', 'convention', and 'info' which represent the number of
|
|
# messages in each category, as well as 'statement' which represents the total
|
|
# number of statements analyzed. This score is used by the global evaluation
|
|
# report (RP0004). Evaluation of this score is skipped if it's value is "-1".
|
|
evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))
|
|
|
|
# Set the output format. Available formats are text, parseable, colorized, json
|
|
# and msvs (visual studio). You can also give a reporter class e.g. mypackage.
|
|
# mymodule.MyReporterClass --output-format=parseable
|
|
output-format=text
|
|
|
|
# Tells whether to display a full report or only the messages
|
|
reports=no
|
|
|
|
# Tells whether to display a full report or only the messages
|
|
score=yes
|
|
|
|
|
|
[REFACTORING]
|
|
|
|
# Maximum number of nested blocks for function / method body
|
|
max-nested-blocks=5
|
|
|
|
# Complete name of functions that never returns. When checking for
|
|
# inconsistent-return-statements if a never returning function is called then
|
|
# it will be considered as an explicit return statement and no message will be
|
|
# printed.
|
|
never-returning-functions=sys.exit,argparse.ArgumentParser.error
|
|
|
|
|
|
[BASIC]
|
|
|
|
# Naming style matching correct argument names.
|
|
argument-naming-style=snake_case
|
|
|
|
# Regular expression matching correct argument names. Overrides argument-
|
|
# naming-style. If left empty, argument names will be checked with the set
|
|
# naming style.
|
|
argument-rgx=
|
|
|
|
# Naming style matching correct attribute names.
|
|
attr-naming-style=snake_case
|
|
|
|
# Regular expression matching correct attribute names. Overrides attr-naming-
|
|
# style. If left empty, attribute names will be checked with the set naming
|
|
# style.
|
|
attr-rgx=
|
|
|
|
# Bad variable names which should always be refused, separated by a comma.
|
|
bad-names=foo,bar,baz,toto,tutu,tata
|
|
|
|
# Naming style matching correct class attribute names.
|
|
class-attribute-naming-style=any
|
|
|
|
# Regular expression matching correct class attribute names. Overrides class-
|
|
# attribute-naming-style. If left empty, class attribute names will be checked
|
|
# with the set naming style.
|
|
class-attribute-rgx=
|
|
|
|
# Naming style matching correct class constant names.
|
|
class-const-naming-style=UPPER_CASE
|
|
|
|
# Regular expression matching correct class constant names. Overrides class-
|
|
# const-naming-style. If left empty, class constant names will be checked with
|
|
# the set naming style.
|
|
class-const-rgx=
|
|
|
|
# Naming style matching correct class names.
|
|
class-naming-style=PascalCase
|
|
|
|
# Regular expression matching correct class names. Overrides class-naming-
|
|
# style. If left empty, class names will be checked with the set naming style.
|
|
class-rgx=
|
|
|
|
# Naming style matching correct constant names.
|
|
const-naming-style=UPPER_CASE
|
|
|
|
# Regular expression matching correct constant names. Overrides const-naming-
|
|
# style. If left empty, constant names will be checked with the set naming
|
|
# style.
|
|
const-rgx=
|
|
|
|
# Minimum line length for functions/classes that require docstrings, shorter
|
|
# ones are exempt.
|
|
docstring-min-length=-1
|
|
|
|
# Naming style matching correct function names.
|
|
function-naming-style=snake_case
|
|
|
|
# Regular expression matching correct function names. Overrides function-
|
|
# naming-style. If left empty, function names will be checked with the set
|
|
# naming style.
|
|
function-rgx=
|
|
|
|
# Good variable names which should always be accepted, separated by a comma.
|
|
good-names=i,j,k,ex,Run,_,x,y,z,dx,dy,dz,bpy
|
|
|
|
# Naming style matching correct method names.
|
|
method-naming-style=snake_case
|
|
|
|
# Regular expression matching correct method names. Overrides method-naming-
|
|
# style. If left empty, method names will be checked with the set naming style.
|
|
method-rgx=
|
|
|
|
# Naming style matching correct module names.
|
|
module-naming-style=snake_case
|
|
|
|
# Regular expression matching correct module names. Overrides module-naming-
|
|
# style. If left empty, module names will be checked with the set naming style.
|
|
module-rgx=
|
|
|
|
# Colon-delimited sets of names that determine each other's naming style when
|
|
# the name regexes allow several styles. This is useful for enforcing naming
|
|
# consistency across properties, getters, and setters. Each named set should
|
|
# contain RegEx rule names to its own set. The RegEx rules in the same set must
|
|
# have compatible naming style. This is done in order to make sure they can
|
|
# interchangeably be used.
|
|
name-group=
|
|
|
|
# Regular expression which should only match function or class names that do
|
|
# not require a docstring.
|
|
no-docstring-rgx=^_
|
|
|
|
# List of decorators that produce properties, such as abc.abstractproperty. Add
|
|
# to this list to register other decorators that produce valid properties.
|
|
# These decorators are taken in consideration only for invalid-name.
|
|
property-classes=abc.abstractproperty
|
|
|
|
# Naming style matching correct variable names.
|
|
variable-naming-style=snake_case
|
|
|
|
# Regular expression matching correct variable names. Overrides variable-
|
|
# naming-style. If left empty, variable names will be checked with the set
|
|
# naming style.
|
|
variable-rgx=
|
|
|
|
|
|
[FORMAT]
|
|
|
|
# Regexp for a line that is allowed to be longer than the limit.
|
|
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
|
|
|
|
# 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=100
|
|
|
|
# Maximum number of lines in a module.
|
|
max-module-lines=1000
|
|
|
|
# Allow the body of a class to be on the same line as the declaration if body
|
|
# contains single statement.
|
|
single-line-class-stmt=no
|
|
|
|
# Allow the body of an if to be on the same line as the test if there is no
|
|
# else.
|
|
single-line-if-stmt=no
|
|
|
|
|
|
[LOGGING]
|
|
|
|
# The type of string formatting that logging methods do. `old` for %
|
|
# formatting, `new` for {} formatting and `fstring` for f-strings.
|
|
logging-format-style=old
|
|
|
|
# Format template used to check logging format string.
|
|
logging-modules=logging
|
|
|
|
|
|
[MISCELLANEOUS]
|
|
|
|
# List of note tags to take in consideration, separated by a comma.
|
|
notes=FIXME,XXX,TODO
|
|
|
|
# Regular expression of note tags to take in consideration.
|
|
notes-rgx=
|
|
|
|
|
|
[SIMILARITIES]
|
|
|
|
# Comments are removed from the similarity computation
|
|
ignore-comments=yes
|
|
|
|
# Docstrings are removed from the similarity computation
|
|
ignore-docstrings=yes
|
|
|
|
# Imports are removed from the similarity computation
|
|
ignore-imports=no
|
|
|
|
# Signatures are removed from the similarity computation
|
|
ignore-signatures=no
|
|
|
|
# Minimum lines number d a similarity.
|
|
min-similarity-lines=4
|
|
|
|
|
|
[SPELLING]
|
|
|
|
# Limits count of emitted suggestions for spelling mistakes.
|
|
max-spelling-suggestions=4
|
|
|
|
# Path to a dictionary that some tests and fixers may parse and use.
|
|
spelling-dict=
|
|
|
|
# Tells whether to spell check word list when using the quiet mode
|
|
spelling-ignore-words=
|
|
|
|
# A path to a file with private dictionary; one word per line.
|
|
spelling-private-dict-file=
|
|
|
|
|
|
[VARIABLES]
|
|
|
|
# List of additional names supposed to be defined in builtins. Remember that
|
|
# you should avoid defining new builtins when possible.
|
|
additional-builtins=
|
|
|
|
# Tells whether unused global variables should be treated as a violation.
|
|
allow-global-unused-variables=yes
|
|
|
|
# List of names allowed to shadow builtins
|
|
allowed-redefined-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. expected to
|
|
# not be used).
|
|
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|^ignored_|^unused_
|
|
|
|
# Argument names that match this expression will be ignored.
|
|
ignored-argument-names=_.*
|
|
|
|
# Tells whether we should check for unused import in __init__ files.
|
|
init-import=no
|
|
|
|
|
|
[CLASSES]
|
|
|
|
# Validate membership accesses on modules/namespaces based on the public API
|
|
# advertised by a module's all definition.
|
|
check-protected-access-in-special-methods=no
|
|
|
|
# List of method names used to declare an abstract method. The naming doesn't
|
|
# matter, as long as the method has the property decorated with
|
|
# "abstractmethod" anything else will be ignored.
|
|
defining-attr-methods=__init__,__new__,setUp,__post_init__
|
|
|
|
# List of member names, which should be excluded from the protected access
|
|
# warning.
|
|
exclude-protected=_asdict,_fields,_replace,_source,_make,os._exit
|
|
|
|
# List of valid names for the first argument in a class method.
|
|
valid-classmethod-first-arg=cls
|
|
|
|
# List of valid names for the first argument in a metaclass class method.
|
|
valid-metaclass-classmethod-first-arg=cls
|
|
|
|
|
|
[DESIGN]
|
|
|
|
# Maximum number of arguments for function / method
|
|
max-args=5
|
|
|
|
# Maximum number of attributes for a class
|
|
max-attributes=7
|
|
|
|
# Maximum number of boolean expressions in an if statement
|
|
max-bool-expr=5
|
|
|
|
# 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
|
|
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
|
|
min-public-methods=2
|
|
|
|
|
|
[IMPORTS]
|
|
|
|
# Analyse import fallback blocks. This can be used to support both Python 2 and
|
|
# 3 compatible code, which means you may have duplicated imports (same
|
|
# imports in try except blocks). By default it set to False.
|
|
analyse-fallback-blocks=no
|
|
|
|
# Create a graph of external dependencies in the given file (report RP0402 must
|
|
# not be disabled)
|
|
ext-import-graph=
|
|
|
|
# Create a graph of every (i.e. non external) dependencies in the given file
|
|
# (report RP0402 must not be disabled)
|
|
import-graph=
|
|
|
|
# Create a graph of those files that have a dependency loop.
|
|
int-import-graph=
|
|
|
|
# Force import order to recognize a module as part of the standard
|
|
# compatibility libraries.
|
|
known-standard-library=
|
|
|
|
# Force import order to recognize a module as part of a third party library.
|
|
known-third-party=enchant
|
|
|
|
|
|
[EXCEPTIONS]
|
|
|
|
# Exceptions that will emit a warning when being caught. Defaults to
|
|
# "BaseException, Exception".
|
|
overgeneral-exceptions=builtins.BaseException,builtins.Exception
|