Fix pep8 job issues with pylint==2.15.0
Closes-Bug: #1988296 Change-Id: I3a4a27ec4672f8ea8848d7c04651730dae6f40ff
This commit is contained in:
parent
e8f0d31d38
commit
7026199065
17
.pylintrc
17
.pylintrc
|
@ -24,57 +24,44 @@ disable=
|
|||
abstract-method,
|
||||
arguments-differ,
|
||||
attribute-defined-outside-init,
|
||||
bad-builtin,
|
||||
bad-indentation,
|
||||
broad-except,
|
||||
dangerous-default-value,
|
||||
deprecated-lambda,
|
||||
expression-not-assigned,
|
||||
fixme,
|
||||
global-statement,
|
||||
keyword-arg-before-vararg,
|
||||
literal-comparison,
|
||||
no-init,
|
||||
non-parent-init-called,
|
||||
not-callable,
|
||||
protected-access,
|
||||
redefined-builtin,
|
||||
redefined-outer-name,
|
||||
signature-differs,
|
||||
star-args,
|
||||
super-init-not-called,
|
||||
super-on-old-class,
|
||||
unpacking-non-sequence,
|
||||
unused-argument,
|
||||
unused-import,
|
||||
unused-variable,
|
||||
useless-super-delegation,
|
||||
using-constant-test,
|
||||
# TODO(dougwig) - disable nonstandard-exception while we have neutron_lib shims
|
||||
nonstandard-exception,
|
||||
# "C" Coding convention violations
|
||||
bad-continuation,
|
||||
consider-iterating-dictionary,
|
||||
consider-using-enumerate,
|
||||
consider-using-f-string,
|
||||
invalid-name,
|
||||
len-as-condition,
|
||||
misplaced-comparison-constant,
|
||||
missing-docstring,
|
||||
singleton-comparison,
|
||||
superfluous-parens,
|
||||
ungrouped-imports,
|
||||
wrong-import-order,
|
||||
# "R" Refactor recommendations
|
||||
abstract-class-little-used,
|
||||
abstract-class-not-used,
|
||||
consider-merging-isinstance,
|
||||
consider-using-ternary,
|
||||
duplicate-code,
|
||||
inconsistent-return-statements,
|
||||
interface-not-implemented,
|
||||
no-else-return,
|
||||
no-self-use,
|
||||
redefined-argument-from-local,
|
||||
simplifiable-if-statement,
|
||||
too-few-public-methods,
|
||||
|
@ -120,10 +107,6 @@ max-line-length=79
|
|||
# _ is used by our localization
|
||||
additional-builtins=_
|
||||
|
||||
[CLASSES]
|
||||
# List of interface methods to ignore, separated by a comma.
|
||||
ignore-iface-methods=
|
||||
|
||||
[IMPORTS]
|
||||
# Deprecated modules which should not be used, separated by a comma
|
||||
deprecated-modules=
|
||||
|
|
|
@ -93,6 +93,7 @@ def has_registry_receivers(klass):
|
|||
super_new = super(klass, cls).__new__
|
||||
if super_new is object.__new__:
|
||||
# object.__new__ doesn't accept args nor kwargs
|
||||
# pylint: disable=no-value-for-parameter
|
||||
instance = super_new(cls)
|
||||
else:
|
||||
instance = super_new(cls, *args, **kwargs)
|
||||
|
|
|
@ -126,6 +126,7 @@ def has_resource_extenders(klass):
|
|||
super_new = super(klass, cls).__new__
|
||||
if super_new is object.__new__:
|
||||
# object.__new__ doesn't accept args nor kwargs
|
||||
# pylint: disable=no-value-for-parameter
|
||||
instance = super_new(cls)
|
||||
else:
|
||||
instance = super_new(cls, *args, **kwargs)
|
||||
|
|
Loading…
Reference in New Issue