[elbe-devel] [PATCH 50/75] finetuning: Fix Pylint
Olivier Dion
dion at linutronix.de
Mon May 25 17:42:43 CEST 2020
35:0: R0205: (useless-object-inheritance)
73:65: E1101: (no-member)
681:0: W0223: (abstract-method)
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/finetuning.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/elbepack/finetuning.py b/elbepack/finetuning.py
index 71875497..5732ed97 100644
--- a/elbepack/finetuning.py
+++ b/elbepack/finetuning.py
@@ -31,7 +31,8 @@ from elbepack.shellhelper import chroot, do, get_command_out
class FinetuningException(Exception):
pass
-
+# TODO:py3 Remove object inheritance
+# pylint: disable=useless-object-inheritance
class FinetuningAction(object):
actiondict = {}
@@ -69,6 +70,8 @@ class ImageFinetuningAction(FinetuningAction):
FinetuningAction.__init__(self, node)
def execute(self, _buildenv, _target):
+ # self.tag is defined in registration
+ # pylint: disable=no-member
raise NotImplementedError("<%s> may only be "
"used in <image-finetuning>" % self.tag)
@@ -680,6 +683,9 @@ class CopyToPartition(ImageFinetuningAction):
@FinetuningAction.register("unit-tests")
class TestSuites(FinetuningAction):
+ # excute() is not implemented because this is a project action
+ # pylint: disable=abstract-method
+
elbe_junit = "elbe-junit.xml"
def execute_prj(self, buildenv, target, builddir):
--
2.26.2
More information about the elbe-devel
mailing list