[elbe-devel] [PATCH v2 41/66] finetuning: Fix Pylint
Olivier Dion
dion at linutronix.de
Fri Jun 5 19:07:05 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 | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/elbepack/finetuning.py b/elbepack/finetuning.py
index 71875497..cfcb5af1 100644
--- a/elbepack/finetuning.py
+++ b/elbepack/finetuning.py
@@ -31,11 +31,14 @@ 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 = {}
+ tag = None
+
@classmethod
def register(cls, tag, register=True):
def _register(action):
@@ -682,6 +685,10 @@ class TestSuites(FinetuningAction):
elbe_junit = "elbe-junit.xml"
+ def execute(self, _buildenv, _target):
+ raise NotImplementedError("<%s> can only be used in the context of a project" %
+ self.tag)
+
def execute_prj(self, buildenv, target, builddir):
tss = []
--
2.27.0
More information about the elbe-devel
mailing list