Update pylintrc
This commit is contained in:
parent
4ad38d5398
commit
3080946ea1
28
pylintrc
28
pylintrc
|
@ -18,7 +18,7 @@ ignore-patterns=
|
||||||
#init-hook=
|
#init-hook=
|
||||||
|
|
||||||
# Use multiple processes to speed up Pylint.
|
# Use multiple processes to speed up Pylint.
|
||||||
jobs=1
|
jobs=0
|
||||||
|
|
||||||
# List of plugins (as comma separated values of python modules names) to load,
|
# List of plugins (as comma separated values of python modules names) to load,
|
||||||
# usually to register additional checkers.
|
# usually to register additional checkers.
|
||||||
|
@ -50,7 +50,7 @@ confidence=
|
||||||
# --enable=similarities". If you want to run only the classes checker, but have
|
# --enable=similarities". If you want to run only the classes checker, but have
|
||||||
# no Warning level messages displayed, use"--disable=all --enable=classes
|
# no Warning level messages displayed, use"--disable=all --enable=classes
|
||||||
# --disable=W"
|
# --disable=W"
|
||||||
disable=print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,backtick,long-suffix,old-ne-operator,old-octal-literal,import-star-module-level,raw-checker-failed,bad-inline-option,locally-disabled,locally-enabled,file-ignored,suppressed-message,useless-suppression,deprecated-pragma,apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,indexing-exception,raising-string,reload-builtin,oct-method,hex-method,nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,eq-without-hash,div-method,idiv-method,rdiv-method,exception-message-attribute,invalid-str-codec,sys-max-int,bad-python3-import,deprecated-string-function,deprecated-str-translate-call,missing-docstring,not-callable,invalid-name,unused-argument,too-few-public-methods,too-many-branches,too-many-instance-attributes,too-many-locals
|
disable=C0111,C0301,R1710,R0912,R0914,R0915,W0511
|
||||||
|
|
||||||
# Enable the message, report, category or checker with the given id(s). You can
|
# 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
|
# either give multiple identifier separated by comma (,) or put this option
|
||||||
|
@ -109,7 +109,7 @@ dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy
|
||||||
|
|
||||||
# Argument names that match this expression will be ignored. Default to name
|
# Argument names that match this expression will be ignored. Default to name
|
||||||
# with leading underscore
|
# with leading underscore
|
||||||
ignored-argument-names=_.*
|
ignored-argument-names=(_.*|kwargs|args)
|
||||||
|
|
||||||
# Tells whether we should check for unused import in __init__ files.
|
# Tells whether we should check for unused import in __init__ files.
|
||||||
init-import=no
|
init-import=no
|
||||||
|
@ -239,10 +239,10 @@ single-line-if-stmt=no
|
||||||
[BASIC]
|
[BASIC]
|
||||||
|
|
||||||
# Naming hint for argument names
|
# Naming hint for argument names
|
||||||
argument-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
|
argument-name-hint=(([a-z][a-z0-9_]{1,30})|(_[a-z0-9_]*))$
|
||||||
|
|
||||||
# Regular expression matching correct argument names
|
# Regular expression matching correct argument names
|
||||||
argument-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
|
argument-rgx=(([a-z][a-z0-9_]{1,30})|(_[a-z0-9_]*))$
|
||||||
|
|
||||||
# Naming hint for attribute names
|
# Naming hint for attribute names
|
||||||
attr-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
|
attr-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
|
||||||
|
@ -269,7 +269,7 @@ class-rgx=[A-Z_][a-zA-Z0-9]+$
|
||||||
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
|
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
|
||||||
|
|
||||||
# Regular expression matching correct constant names
|
# Regular expression matching correct constant names
|
||||||
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
|
const-rgx=
|
||||||
|
|
||||||
# Minimum line length for functions/classes that require docstrings, shorter
|
# Minimum line length for functions/classes that require docstrings, shorter
|
||||||
# ones are exempt.
|
# ones are exempt.
|
||||||
|
@ -282,7 +282,7 @@ function-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
|
||||||
function-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
|
function-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
|
||||||
|
|
||||||
# Good variable names which should always be accepted, separated by a comma
|
# Good variable names which should always be accepted, separated by a comma
|
||||||
good-names=i,j,k,ex,Run,_
|
good-names=i,j,k,ex,Run,_,iq
|
||||||
|
|
||||||
# Include a hint for the correct naming format with invalid-name
|
# Include a hint for the correct naming format with invalid-name
|
||||||
include-naming-hint=no
|
include-naming-hint=no
|
||||||
|
@ -318,10 +318,10 @@ no-docstring-rgx=^_
|
||||||
property-classes=abc.abstractproperty
|
property-classes=abc.abstractproperty
|
||||||
|
|
||||||
# Naming hint for variable names
|
# Naming hint for variable names
|
||||||
variable-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
|
variable-name-hint=(([a-z][a-z0-9_]{1,30})|(_[a-z0-9_]*))$
|
||||||
|
|
||||||
# Regular expression matching correct variable names
|
# Regular expression matching correct variable names
|
||||||
variable-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
|
variable-rgx=(([a-z][a-z0-9_]{1,30})|(_[a-z0-9_]*))$
|
||||||
|
|
||||||
|
|
||||||
[IMPORTS]
|
[IMPORTS]
|
||||||
|
@ -357,10 +357,10 @@ known-third-party=enchant
|
||||||
[DESIGN]
|
[DESIGN]
|
||||||
|
|
||||||
# Maximum number of arguments for function / method
|
# Maximum number of arguments for function / method
|
||||||
max-args=5
|
max-args=10
|
||||||
|
|
||||||
# Maximum number of attributes for a class (see R0902).
|
# Maximum number of attributes for a class (see R0902).
|
||||||
max-attributes=7
|
max-attributes=9999
|
||||||
|
|
||||||
# Maximum number of boolean expressions in a if statement
|
# Maximum number of boolean expressions in a if statement
|
||||||
max-bool-expr=5
|
max-bool-expr=5
|
||||||
|
@ -378,13 +378,13 @@ max-parents=7
|
||||||
max-public-methods=20
|
max-public-methods=20
|
||||||
|
|
||||||
# Maximum number of return / yield for function / method body
|
# Maximum number of return / yield for function / method body
|
||||||
max-returns=6
|
max-returns=100
|
||||||
|
|
||||||
# Maximum number of statements in function / method body
|
# Maximum number of statements in function / method body
|
||||||
max-statements=50
|
max-statements=50
|
||||||
|
|
||||||
# Minimum number of public methods for a class (see R0903).
|
# Minimum number of public methods for a class (see R0903).
|
||||||
min-public-methods=2
|
min-public-methods=0
|
||||||
|
|
||||||
|
|
||||||
[CLASSES]
|
[CLASSES]
|
||||||
|
@ -407,4 +407,4 @@ valid-metaclass-classmethod-first-arg=mcs
|
||||||
|
|
||||||
# Exceptions that will emit a warning when being caught. Defaults to
|
# Exceptions that will emit a warning when being caught. Defaults to
|
||||||
# "Exception"
|
# "Exception"
|
||||||
overgeneral-exceptions=Exception
|
overgeneral-exceptions=
|
||||||
|
|
Loading…
Reference in New Issue