Update .pylintrc
Update .pylintrc to be stricter, for example, to enforce C0330 warnings (hanging/continued indentation). This should be the end of the series. Also did some cleanup of old unsupport options that pylint complains about when you run it. Change-Id: Id1bce82f584243b55a47fd6d5c5db81729e11f03
This commit is contained in:
parent
86badcfe2d
commit
0d315d2467
18
.pylintrc
18
.pylintrc
@ -24,35 +24,27 @@ disable=
|
|||||||
abstract-method,
|
abstract-method,
|
||||||
arguments-differ,
|
arguments-differ,
|
||||||
attribute-defined-outside-init,
|
attribute-defined-outside-init,
|
||||||
bad-builtin,
|
|
||||||
bad-indentation,
|
bad-indentation,
|
||||||
broad-except,
|
broad-except,
|
||||||
dangerous-default-value,
|
dangerous-default-value,
|
||||||
deprecated-lambda,
|
|
||||||
expression-not-assigned,
|
expression-not-assigned,
|
||||||
fixme,
|
fixme,
|
||||||
global-statement,
|
global-statement,
|
||||||
keyword-arg-before-vararg,
|
keyword-arg-before-vararg,
|
||||||
literal-comparison,
|
literal-comparison,
|
||||||
no-init,
|
|
||||||
non-parent-init-called,
|
non-parent-init-called,
|
||||||
not-callable,
|
not-callable,
|
||||||
protected-access,
|
protected-access,
|
||||||
redefined-builtin,
|
redefined-builtin,
|
||||||
redefined-outer-name,
|
redefined-outer-name,
|
||||||
signature-differs,
|
signature-differs,
|
||||||
star-args,
|
|
||||||
super-init-not-called,
|
super-init-not-called,
|
||||||
super-on-old-class,
|
|
||||||
unpacking-non-sequence,
|
unpacking-non-sequence,
|
||||||
unused-argument,
|
unused-argument,
|
||||||
unused-import,
|
unused-import,
|
||||||
unused-variable,
|
unused-variable,
|
||||||
useless-super-delegation,
|
useless-super-delegation,
|
||||||
# TODO(dougwig) - disable nonstandard-exception while we have neutron_lib shims
|
|
||||||
nonstandard-exception,
|
|
||||||
# "C" Coding convention violations
|
# "C" Coding convention violations
|
||||||
bad-continuation,
|
|
||||||
consider-iterating-dictionary,
|
consider-iterating-dictionary,
|
||||||
consider-using-enumerate,
|
consider-using-enumerate,
|
||||||
invalid-name,
|
invalid-name,
|
||||||
@ -63,13 +55,10 @@ disable=
|
|||||||
ungrouped-imports,
|
ungrouped-imports,
|
||||||
wrong-import-order,
|
wrong-import-order,
|
||||||
# "R" Refactor recommendations
|
# "R" Refactor recommendations
|
||||||
abstract-class-little-used,
|
|
||||||
abstract-class-not-used,
|
|
||||||
consider-merging-isinstance,
|
consider-merging-isinstance,
|
||||||
consider-using-ternary,
|
consider-using-ternary,
|
||||||
duplicate-code,
|
duplicate-code,
|
||||||
inconsistent-return-statements,
|
inconsistent-return-statements,
|
||||||
interface-not-implemented,
|
|
||||||
no-else-return,
|
no-else-return,
|
||||||
no-self-use,
|
no-self-use,
|
||||||
redefined-argument-from-local,
|
redefined-argument-from-local,
|
||||||
@ -118,8 +107,11 @@ max-line-length=79
|
|||||||
additional-builtins=_
|
additional-builtins=_
|
||||||
|
|
||||||
[CLASSES]
|
[CLASSES]
|
||||||
# List of interface methods to ignore, separated by a comma.
|
# List of valid names for the first argument in a class method.
|
||||||
ignore-iface-methods=
|
valid-classmethod-first-arg=cls
|
||||||
|
|
||||||
|
# List of valid names for the first argument in a metaclass class method.
|
||||||
|
valid-metaclass-classmethod-first-arg=cls
|
||||||
|
|
||||||
[IMPORTS]
|
[IMPORTS]
|
||||||
# Deprecated modules which should not be used, separated by a comma
|
# Deprecated modules which should not be used, separated by a comma
|
||||||
|
Loading…
Reference in New Issue
Block a user