Blame scripts/pylintrc

Packit 6c4009
[MASTER]
Packit 6c4009
Packit 6c4009
# Specify a configuration file.
Packit 6c4009
#rcfile=
Packit 6c4009
Packit 6c4009
# Python code to execute, usually for sys.path manipulation such as
Packit 6c4009
# pygtk.require().
Packit 6c4009
#init-hook=
Packit 6c4009
Packit 6c4009
# Profiled execution.
Packit 6c4009
profile=no
Packit 6c4009
Packit 6c4009
# Add files or directories to the blacklist. They should be base names, not
Packit 6c4009
# paths.
Packit 6c4009
ignore=CVS
Packit 6c4009
Packit 6c4009
# Pickle collected data for later comparisons.
Packit 6c4009
persistent=yes
Packit 6c4009
Packit 6c4009
# List of plugins (as comma separated values of python modules names) to load,
Packit 6c4009
# usually to register additional checkers.
Packit 6c4009
load-plugins=
Packit 6c4009
Packit 6c4009
Packit 6c4009
[MESSAGES CONTROL]
Packit 6c4009
Packit 6c4009
# Enable the message, report, category or checker with the given id(s). You can
Packit 6c4009
# either give multiple identifier separated by comma (,) or put this option
Packit 6c4009
# multiple time. See also the "--disable" option for examples.
Packit 6c4009
#enable=
Packit 6c4009
Packit 6c4009
# Disable the message, report, category or checker with the given id(s). You
Packit 6c4009
# can either give multiple identifiers separated by comma (,) or put this
Packit 6c4009
# option multiple times (only on the command line, not in the configuration
Packit 6c4009
# file where it should appear only once).You can also use "--disable=all" to
Packit 6c4009
# disable everything first and then reenable specific checks. For example, if
Packit 6c4009
# you want to run only the similarities checker, you can use "--disable=all
Packit 6c4009
# --enable=similarities". If you want to run only the classes checker, but have
Packit 6c4009
# no Warning level messages displayed, use"--disable=all --enable=classes
Packit 6c4009
# --disable=W"
Packit 6c4009
#disable=
Packit 6c4009
Packit 6c4009
Packit 6c4009
[REPORTS]
Packit 6c4009
Packit 6c4009
# Set the output format. Available formats are text, parseable, colorized, msvs
Packit 6c4009
# (visual studio) and html. You can also give a reporter class, eg
Packit 6c4009
# mypackage.mymodule.MyReporterClass.
Packit 6c4009
output-format=text
Packit 6c4009
Packit 6c4009
# Put messages in a separate file for each module / package specified on the
Packit 6c4009
# command line instead of printing them on stdout. Reports (if any) will be
Packit 6c4009
# written in a file name "pylint_global.[txt|html]".
Packit 6c4009
files-output=no
Packit 6c4009
Packit 6c4009
# Tells whether to display a full report or only the messages
Packit 6c4009
reports=no
Packit 6c4009
Packit 6c4009
# Python expression which should return a note less than 10 (10 is the highest
Packit 6c4009
# note). You have access to the variables errors warning, statement which
Packit 6c4009
# respectively contain the number of errors / warnings messages and the total
Packit 6c4009
# number of statements analyzed. This is used by the global evaluation report
Packit 6c4009
# (RP0004).
Packit 6c4009
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
Packit 6c4009
Packit 6c4009
# Add a comment according to your evaluation note. This is used by the global
Packit 6c4009
# evaluation report (RP0004).
Packit 6c4009
comment=no
Packit 6c4009
Packit 6c4009
# Template used to display messages. This is a python new-style format string
Packit 6c4009
# used to format the massage information. See doc for all details
Packit 6c4009
#msg-template=
Packit 6c4009
Packit 6c4009
Packit 6c4009
[MISCELLANEOUS]
Packit 6c4009
Packit 6c4009
# List of note tags to take in consideration, separated by a comma.
Packit 6c4009
notes=FIXME,XXX,TODO
Packit 6c4009
Packit 6c4009
Packit 6c4009
[SIMILARITIES]
Packit 6c4009
Packit 6c4009
# Minimum lines number of a similarity.
Packit 6c4009
min-similarity-lines=4
Packit 6c4009
Packit 6c4009
# Ignore comments when computing similarities.
Packit 6c4009
ignore-comments=yes
Packit 6c4009
Packit 6c4009
# Ignore docstrings when computing similarities.
Packit 6c4009
ignore-docstrings=yes
Packit 6c4009
Packit 6c4009
# Ignore imports when computing similarities.
Packit 6c4009
ignore-imports=no
Packit 6c4009
Packit 6c4009
Packit 6c4009
[BASIC]
Packit 6c4009
Packit 6c4009
# Required attributes for module, separated by a comma
Packit 6c4009
required-attributes=
Packit 6c4009
Packit 6c4009
# List of builtins function names that should not be used, separated by a comma
Packit 6c4009
bad-functions=map,filter,apply,input
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct module names
Packit 6c4009
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct module level names
Packit 6c4009
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct class names
Packit 6c4009
class-rgx=[A-Z_][a-zA-Z0-9]+$
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct function names
Packit 6c4009
function-rgx=[a-z_][a-z0-9_]{2,30}$
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct method names
Packit 6c4009
method-rgx=[a-z_][a-z0-9_]{2,30}$
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct instance attribute names
Packit 6c4009
attr-rgx=[a-z_][a-z0-9_]{2,30}$
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct argument names
Packit 6c4009
argument-rgx=[a-z_][a-z0-9_]{2,30}$
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct variable names
Packit 6c4009
variable-rgx=[a-z_][a-z0-9_]{2,30}$
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct attribute names in class
Packit 6c4009
# bodies
Packit 6c4009
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
Packit 6c4009
Packit 6c4009
# Regular expression which should only match correct list comprehension /
Packit 6c4009
# generator expression variable names
Packit 6c4009
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
Packit 6c4009
Packit 6c4009
# Good variable names which should always be accepted, separated by a comma
Packit 6c4009
# f is a useful name for a file descriptor
Packit 6c4009
good-names=f,i,j,k,ex,Run,_
Packit 6c4009
Packit 6c4009
# Bad variable names which should always be refused, separated by a comma
Packit 6c4009
bad-names=foo,bar,baz,toto,tutu,tata
Packit 6c4009
Packit 6c4009
# Regular expression which should only match function or class names that do
Packit 6c4009
# not require a docstring.
Packit 6c4009
no-docstring-rgx=__.*__
Packit 6c4009
Packit 6c4009
# Minimum line length for functions/classes that require docstrings, shorter
Packit 6c4009
# ones are exempt.
Packit 6c4009
docstring-min-length=-1
Packit 6c4009
Packit 6c4009
Packit 6c4009
[VARIABLES]
Packit 6c4009
Packit 6c4009
# Tells whether we should check for unused import in __init__ files.
Packit 6c4009
init-import=no
Packit 6c4009
Packit 6c4009
# A regular expression matching the beginning of the name of dummy variables
Packit 6c4009
# (i.e. not used).
Packit 6c4009
dummy-variables-rgx=_$|dummy
Packit 6c4009
Packit 6c4009
# List of additional names supposed to be defined in builtins. Remember that
Packit 6c4009
# you should avoid to define new builtins when possible.
Packit 6c4009
additional-builtins=
Packit 6c4009
Packit 6c4009
Packit 6c4009
[FORMAT]
Packit 6c4009
Packit 6c4009
# Maximum number of characters on a single line.
Packit 6c4009
max-line-length=79
Packit 6c4009
Packit 6c4009
# Regexp for a line that is allowed to be longer than the limit.
Packit 6c4009
ignore-long-lines=^\s*(# )??$
Packit 6c4009
Packit 6c4009
# Maximum number of lines in a module
Packit 6c4009
max-module-lines=1000
Packit 6c4009
Packit 6c4009
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
Packit 6c4009
# tab).
Packit 6c4009
indent-string='    '
Packit 6c4009
Packit 6c4009
Packit 6c4009
[TYPECHECK]
Packit 6c4009
Packit 6c4009
# Tells whether missing members accessed in mixin class should be ignored. A
Packit 6c4009
# mixin class is detected if its name ends with "mixin" (case insensitive).
Packit 6c4009
ignore-mixin-members=yes
Packit 6c4009
Packit 6c4009
# List of classes names for which member attributes should not be checked
Packit 6c4009
# (useful for classes with attributes dynamically set).
Packit 6c4009
ignored-classes=SQLObject
Packit 6c4009
Packit 6c4009
# When zope mode is activated, add a predefined set of Zope acquired attributes
Packit 6c4009
# to generated-members.
Packit 6c4009
zope=no
Packit 6c4009
Packit 6c4009
# List of members which are set dynamically and missed by pylint inference
Packit 6c4009
# system, and so shouldn't trigger E0201 when accessed. Python regular
Packit 6c4009
# expressions are accepted.
Packit 6c4009
generated-members=REQUEST,acl_users,aq_parent
Packit 6c4009
Packit 6c4009
Packit 6c4009
[CLASSES]
Packit 6c4009
Packit 6c4009
# List of interface methods to ignore, separated by a comma. This is used for
Packit 6c4009
# instance to not check methods defines in Zope's Interface base class.
Packit 6c4009
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
Packit 6c4009
Packit 6c4009
# List of method names used to declare (i.e. assign) instance attributes.
Packit 6c4009
defining-attr-methods=__init__,__new__,setUp
Packit 6c4009
Packit 6c4009
# List of valid names for the first argument in a class method.
Packit 6c4009
valid-classmethod-first-arg=cls
Packit 6c4009
Packit 6c4009
# List of valid names for the first argument in a metaclass class method.
Packit 6c4009
valid-metaclass-classmethod-first-arg=mcs
Packit 6c4009
Packit 6c4009
Packit 6c4009
[IMPORTS]
Packit 6c4009
Packit 6c4009
# Deprecated modules which should not be used, separated by a comma
Packit 6c4009
deprecated-modules=regsub,TERMIOS,Bastion,rexec
Packit 6c4009
Packit 6c4009
# Create a graph of every (i.e. internal and external) dependencies in the
Packit 6c4009
# given file (report RP0402 must not be disabled)
Packit 6c4009
import-graph=
Packit 6c4009
Packit 6c4009
# Create a graph of external dependencies in the given file (report RP0402 must
Packit 6c4009
# not be disabled)
Packit 6c4009
ext-import-graph=
Packit 6c4009
Packit 6c4009
# Create a graph of internal dependencies in the given file (report RP0402 must
Packit 6c4009
# not be disabled)
Packit 6c4009
int-import-graph=
Packit 6c4009
Packit 6c4009
Packit 6c4009
[DESIGN]
Packit 6c4009
Packit 6c4009
# Maximum number of arguments for function / method
Packit 6c4009
max-args=5
Packit 6c4009
Packit 6c4009
# Argument names that match this expression will be ignored. Default to name
Packit 6c4009
# with leading underscore
Packit 6c4009
ignored-argument-names=_.*
Packit 6c4009
Packit 6c4009
# Maximum number of locals for function / method body
Packit 6c4009
max-locals=15
Packit 6c4009
Packit 6c4009
# Maximum number of return / yield for function / method body
Packit 6c4009
max-returns=6
Packit 6c4009
Packit 6c4009
# Maximum number of branch for function / method body
Packit 6c4009
max-branches=12
Packit 6c4009
Packit 6c4009
# Maximum number of statements in function / method body
Packit 6c4009
max-statements=50
Packit 6c4009
Packit 6c4009
# Maximum number of parents for a class (see R0901).
Packit 6c4009
max-parents=7
Packit 6c4009
Packit 6c4009
# Maximum number of attributes for a class (see R0902).
Packit 6c4009
max-attributes=7
Packit 6c4009
Packit 6c4009
# Minimum number of public methods for a class (see R0903).
Packit 6c4009
min-public-methods=2
Packit 6c4009
Packit 6c4009
# Maximum number of public methods for a class (see R0904).
Packit 6c4009
max-public-methods=20
Packit 6c4009
Packit 6c4009
Packit 6c4009
[EXCEPTIONS]
Packit 6c4009
Packit 6c4009
# Exceptions that will emit a warning when being caught. Defaults to
Packit 6c4009
# "Exception"
Packit 6c4009
overgeneral-exceptions=Exception