Merge "Unsuppress pylint E1111 assignment-from-no-return"
This commit is contained in:
commit
7c0853eb4a
|
@ -29,11 +29,8 @@ DLOG = debug.debug_get_logger('nfv_plugins.nfvi_plugins.clients.kubernetes_clien
|
||||||
# in the python Kubernetes client to bypass the "none image"
|
# in the python Kubernetes client to bypass the "none image"
|
||||||
# check because the error is not from kubernetes.
|
# check because the error is not from kubernetes.
|
||||||
#
|
#
|
||||||
# This workaround should be removed if the proposed solutions
|
# This workaround should be removed when we update to
|
||||||
# can be made in kubernetes or a workaround can be implemented
|
# kubernetes client v22
|
||||||
# in containerd.
|
|
||||||
# https://github.com/kubernetes/kubernetes/pull/79018
|
|
||||||
# https://github.com/containerd/containerd/issues/4771
|
|
||||||
def names(self, names):
|
def names(self, names):
|
||||||
"""Monkey patch V1ContainerImage with this to set the names."""
|
"""Monkey patch V1ContainerImage with this to set the names."""
|
||||||
self._names = names
|
self._names = names
|
||||||
|
@ -41,7 +38,7 @@ def names(self, names):
|
||||||
|
|
||||||
# Replacing address of "names" in V1ContainerImage
|
# Replacing address of "names" in V1ContainerImage
|
||||||
# with the "names" defined above
|
# with the "names" defined above
|
||||||
V1ContainerImage.names = V1ContainerImage.names.setter(names) # pylint: disable=no-member
|
V1ContainerImage.names = V1ContainerImage.names.setter(names) # pylint: disable=assignment-from-no-return
|
||||||
|
|
||||||
|
|
||||||
def get_client():
|
def get_client():
|
||||||
|
|
|
@ -46,5 +46,5 @@ class TestDebugConfig(testcase.NFVTestCase):
|
||||||
self.assertEqual(Debug()._debug_level, DEBUG_LEVEL.VERBOSE)
|
self.assertEqual(Debug()._debug_level, DEBUG_LEVEL.VERBOSE)
|
||||||
|
|
||||||
# call reload_config to undo the local modification
|
# call reload_config to undo the local modification
|
||||||
config = debug.debug_reload_config()
|
debug.debug_reload_config()
|
||||||
self.assertNotEqual(Debug()._debug_level, DEBUG_LEVEL.VERBOSE)
|
self.assertNotEqual(Debug()._debug_level, DEBUG_LEVEL.VERBOSE)
|
||||||
|
|
|
@ -100,7 +100,6 @@ disable=
|
||||||
W0237, # arguments-renamed
|
W0237, # arguments-renamed
|
||||||
W4905, # deprecated-decorator
|
W4905, # deprecated-decorator
|
||||||
E1101, # no-member
|
E1101, # no-member
|
||||||
E1111, # assignment-from-no-return
|
|
||||||
E1121 # too-many-function-args
|
E1121 # too-many-function-args
|
||||||
|
|
||||||
[REPORTS]
|
[REPORTS]
|
||||||
|
@ -277,6 +276,5 @@ valid-classmethod-first-arg=cls
|
||||||
|
|
||||||
|
|
||||||
[EXCEPTIONS]
|
[EXCEPTIONS]
|
||||||
# Exceptions that will emit a warning when being caught. Defaults to
|
# Exceptions that will emit a warning when caught.
|
||||||
# "Exception"
|
overgeneral-exceptions=builtins.BaseException,builtins.Exception
|
||||||
overgeneral-exceptions=Exception
|
|
||||||
|
|
Loading…
Reference in New Issue