[elbe-devel] [PATCH 1/2] add,adjustpkgs,control: fix style errors

Akash Satamkar akash at linutronix.de
Mon Sep 30 16:41:48 CEST 2019


pylint and pycodestyle complains:
------------------------------------
elbepack/commands/add.py:14:1: E302 expected 2 blank lines, found 1

elbepack/commands/adjustpkgs.py:10: [W0611(unused-import), ] Unused import os
elbepack/commands/adjustpkgs.py:114:5: E303 too many blank lines (2)
elbepack/commands/adjustpkgs.py:114:31: E231 missing whitespace after ':'

elbepack/commands/control.py:80:80: E501 line too long (104 > 79 characters)
elbepack/commands/control.py:83:80: E501 line too long (81 > 79 characters)
--------------------------------------
fixed it

Signed-off-by: Akash Satamkar <akash at linutronix.de>
---
 elbepack/commands/add.py        | 1 +
 elbepack/commands/adjustpkgs.py | 4 +---
 elbepack/commands/control.py    | 6 ++++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/elbepack/commands/add.py b/elbepack/commands/add.py
index 8f666a5f..6d2d3c14 100644
--- a/elbepack/commands/add.py
+++ b/elbepack/commands/add.py
@@ -11,6 +11,7 @@ from optparse import OptionParser
 
 from elbepack.elbexml import ElbeXML
 
+
 def run_command(argv):
 
     oparser = OptionParser(
diff --git a/elbepack/commands/adjustpkgs.py b/elbepack/commands/adjustpkgs.py
index 90c677ed..bf501728 100644
--- a/elbepack/commands/adjustpkgs.py
+++ b/elbepack/commands/adjustpkgs.py
@@ -7,7 +7,6 @@
 from __future__ import print_function
 
 import logging
-import os
 import sys
 from optparse import OptionParser
 
@@ -110,8 +109,7 @@ def run_command(argv):
         buildenv_pkgs = [p.et.text for p in xml.node(
             "project/buildimage/pkg-list")]
 
-
-    with elbe_logging({"files":opt.output}):
+    with elbe_logging({"files": opt.output}):
         adj = adjpkg(opt.name)
         return adj.set_pkgs(xml_pkgs + mandatory_pkgs + buildenv_pkgs)
 
diff --git a/elbepack/commands/control.py b/elbepack/commands/control.py
index cb539b70..c040bcba 100644
--- a/elbepack/commands/control.py
+++ b/elbepack/commands/control.py
@@ -77,10 +77,12 @@ def run_command(argv):
                        help="Only list/download pbuilder Files")
 
     oparser.add_option("--cpuset", default=-1, type="int",
-                       help="Limit cpuset of pbuilder commands (bitmask) (defaults to -1 for all CPUs)")
+                       help="Limit cpuset of pbuilder commands "
+                            "(bitmask) (defaults to -1 for all CPUs)")
 
     oparser.add_option("--profile", dest="profile", default="",
-                       help="Make pbuilder commands build the specified profile")
+                       help="Make pbuilder commands "
+                       "build the specified profile")
 
     devel = OptionGroup(
         oparser,
-- 
2.20.1




More information about the elbe-devel mailing list