[elbe-devel] [PATCH 7/8] pylint elbeproject: ignore too-many-arguments in gen_sdk_scripts() + style

Torben Hohn torben.hohn at linutronix.de
Mon Oct 14 16:57:33 CEST 2019


pylint complains:

elbepack/elbeproject.py:78: [R0913(too-many-arguments), gen_sdk_scripts] Too many arguments (6/5)

and pycodestyle complains:

elbepack/elbeproject.py:656:80: E501 line too long (80 > 79 characters)
elbepack/elbeproject.py:897:80: E501 line too long (84 > 79 characters)

fix them

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/elbeproject.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 0601e4acb..49b8f6460 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -81,6 +81,7 @@ def gen_sdk_scripts(triplet,
                     prj_version,
                     builddir,
                     sdkpath):
+    # pylint: disable=too-many-arguments
 
     prj_name = prj_name.replace(" ", "_")
     prj_version = prj_version.replace(" ", "_")
@@ -653,7 +654,8 @@ class ElbeProject (object):
             for orig_fname in self.orig_files:
                 ofname = os.path.join(self.builddir, orig_fname)
                 do('mv "%s" "%s"' % (ofname,
-                                     os.path.join(self.builddir, "pdebuilder")))
+                                     os.path.join(self.builddir,
+                                                  "pdebuilder")))
         finally:
             self.orig_fname = None
             self.orig_files = []
@@ -894,7 +896,9 @@ class ElbeProject (object):
                 except KeyError:
                     logging.exception("No Package %s", p)
                 except SystemError:
-                    logging.exception("Unable to correct problems in package %s", p)
+                    logging.exception("Unable to correct problems "
+                                      "in package %s",
+                                      p)
 
             # temporary disabled because of
             # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776057
-- 
2.20.1




More information about the elbe-devel mailing list