[elbe-devel] [PATCH 15/28] pylint: disable too-many-*

Torben Hohn torben.hohn at linutronix.de
Wed Aug 22 11:29:09 CEST 2018


pylint complains about all kinds of too-many.

delay fixing, and just disable them. just make
sure that no code is added, which triggers these.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/commands/check_updates.py | 1 +
 elbepack/commands/diff.py          | 3 +++
 elbepack/commands/gen_update.py    | 1 +
 elbepack/commands/init.py          | 1 +
 elbepack/commands/parselicence.py  | 1 +
 elbepack/commands/pkgdiff.py       | 1 +
 elbepack/commands/show.py          | 3 +++
 elbepack/daemons/soap/esoap.py     | 2 ++
 elbepack/db.py                     | 5 +++++
 elbepack/debianize/barebox.py      | 2 ++
 elbepack/debianize/base.py         | 1 +
 elbepack/debianize/kernel.py       | 1 +
 elbepack/dump.py                   | 2 ++
 elbepack/xmlpreprocess.py          | 1 +
 14 files changed, 25 insertions(+)

diff --git a/elbepack/commands/check_updates.py b/elbepack/commands/check_updates.py
index f2b9cb74..7b0274c2 100644
--- a/elbepack/commands/check_updates.py
+++ b/elbepack/commands/check_updates.py
@@ -22,6 +22,7 @@ def run_command(argv):
 
     # pylint: disable=too-many-locals
     # pylint: disable=too-many-statements
+    # pylint: disable=too-many-branches
 
     oparser = OptionParser(
         usage="usage: %prog check_updates [options] <source-xmlfile>")
diff --git a/elbepack/commands/diff.py b/elbepack/commands/diff.py
index 3f2dd85e..b5c8749f 100644
--- a/elbepack/commands/diff.py
+++ b/elbepack/commands/diff.py
@@ -14,6 +14,9 @@ from optparse import OptionParser
 
 def walk_generated(gen_path, fix_path, exclude):
 
+    # pylint: disable=too-many-nested-blocks
+    # pylint: disable=too-many-branches
+
     file_to_rm = []
     file_differ = []
     gen_path = gen_path.rstrip("/")
diff --git a/elbepack/commands/gen_update.py b/elbepack/commands/gen_update.py
index 37ee01c4..bc5e3bd2 100644
--- a/elbepack/commands/gen_update.py
+++ b/elbepack/commands/gen_update.py
@@ -20,6 +20,7 @@ from elbepack.updatepkg import gen_update_pkg, MissingData
 def run_command(argv):
 
     # pylint: disable=too-many-statements
+    # pylint: disable=too-many-branches
 
     oparser = OptionParser(usage="usage: %prog gen_update [options] [xmlfile]")
     oparser.add_option("-t", "--target", dest="target",
diff --git a/elbepack/commands/init.py b/elbepack/commands/init.py
index 7e9ee61d..0d97b93d 100644
--- a/elbepack/commands/init.py
+++ b/elbepack/commands/init.py
@@ -27,6 +27,7 @@ def run_command(argv):
 
     # pylint: disable=too-many-locals
     # pylint: disable=too-many-statements
+    # pylint: disable=too-many-branches
 
     oparser = OptionParser(usage="usage: %prog init [options] <filename>")
 
diff --git a/elbepack/commands/parselicence.py b/elbepack/commands/parselicence.py
index c56b3185..55882ef0 100644
--- a/elbepack/commands/parselicence.py
+++ b/elbepack/commands/parselicence.py
@@ -128,6 +128,7 @@ def run_command(argv):
 
     # pylint: disable=too-many-locals
     # pylint: disable=too-many-statements
+    # pylint: disable=too-many-branches
 
     oparser = OptionParser(
         usage="usage: %prog parselicence [options] <licencefile>")
diff --git a/elbepack/commands/pkgdiff.py b/elbepack/commands/pkgdiff.py
index 91754e47..935265a0 100644
--- a/elbepack/commands/pkgdiff.py
+++ b/elbepack/commands/pkgdiff.py
@@ -21,6 +21,7 @@ from elbepack.elbexml import ElbeXML, ValidationMode
 def run_command(argv):
 
     # pylint: disable=too-many-locals
+    # pylint: disable=too-many-branches
 
     oparser = OptionParser(
         usage="usage: %prog pkgdiff [options] <rfs1> <rfs2>")
diff --git a/elbepack/commands/show.py b/elbepack/commands/show.py
index dfa9da2c..59173917 100644
--- a/elbepack/commands/show.py
+++ b/elbepack/commands/show.py
@@ -16,6 +16,9 @@ from elbepack.validate import validate_xml
 
 
 def run_command(argv):
+
+    # pylint: disable=too-many-branches
+
     oparser = OptionParser(usage="usage: %prog show [options] <filename>")
 
     oparser.add_option("--verbose", action="store_true", dest="verbose",
diff --git a/elbepack/daemons/soap/esoap.py b/elbepack/daemons/soap/esoap.py
index 3ec1b903..5d1306ee 100644
--- a/elbepack/daemons/soap/esoap.py
+++ b/elbepack/daemons/soap/esoap.py
@@ -37,6 +37,8 @@ except ImportError as e:
 
 class ESoap (ServiceBase):
 
+    # pylint: disable=too-many-public-methods
+
     __name__ = 'soap'
 
     def __init__(self):
diff --git a/elbepack/db.py b/elbepack/db.py
index 44fe2475..c70b48d7 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -6,6 +6,8 @@
 #
 # SPDX-License-Identifier: GPL-3.0-or-later
 
+# pylint: disable=too-many-lines
+
 from __future__ import print_function
 
 import os
@@ -68,6 +70,9 @@ def get_versioned_filename(name, version, suffix):
 
 
 class ElbeDB(object):
+
+    # pylint: disable=too-many-public-methods
+
     db_path = '/var/cache/elbe'
     db_location = 'sqlite:///' + db_path + '/elbe.db'
 
diff --git a/elbepack/debianize/barebox.py b/elbepack/debianize/barebox.py
index e2a0118b..58a3647e 100644
--- a/elbepack/debianize/barebox.py
+++ b/elbepack/debianize/barebox.py
@@ -16,6 +16,8 @@ from elbepack.debianize.base import DebianizeBase, template
 
 class BareBox (DebianizeBase):
 
+    # pylint: disable=too-many-ancestors
+
     name = "barebox"
     files = ['Kbuild', 'Kconfig', 'README', 'TODO']
 
diff --git a/elbepack/debianize/base.py b/elbepack/debianize/base.py
index 3e0f7cfe..b9aaf74c 100644
--- a/elbepack/debianize/base.py
+++ b/elbepack/debianize/base.py
@@ -20,6 +20,7 @@ from elbepack.templates import template
 class DebianizeBase (FormMultiPage):
 
     # pylint: disable=too-many-instance-attributes
+    # pylint: disable=too-many-ancestors
 
     srctypes = {}
 
diff --git a/elbepack/debianize/kernel.py b/elbepack/debianize/kernel.py
index b84cf710..bea834fc 100644
--- a/elbepack/debianize/kernel.py
+++ b/elbepack/debianize/kernel.py
@@ -18,6 +18,7 @@ from elbepack.debianize.base import DebianizeBase, template
 class Kernel (DebianizeBase):
 
     # pylint: disable=too-many-instance-attributes
+    # pylint: disable=too-many-ancestors
 
     name = "kernel"
     files = ['Kbuild', 'Kconfig', 'MAINTAINERS', 'kernel/futex.c']
diff --git a/elbepack/dump.py b/elbepack/dump.py
index e8d30f45..d9db77ba 100644
--- a/elbepack/dump.py
+++ b/elbepack/dump.py
@@ -82,6 +82,7 @@ def dump_initvmpkgs(xml):
 def check_full_pkgs(pkgs, fullpkgs, errorname, cache):
 
     # pylint: disable=too-many-statements
+    # pylint: disable=too-many-branches
 
     elog = ASCIIDocLog(errorname, True)
 
@@ -169,6 +170,7 @@ def elbe_report(xml, buildenv, cache, reportname, errorname, targetfs):
     # pylint: disable=too-many-arguments
     # pylint: disable=too-many-locals
     # pylint: disable=too-many-statements
+    # pylint: disable=too-many-branches
 
     outf = ASCIIDocLog(reportname)
     rfs = buildenv.rfs
diff --git a/elbepack/xmlpreprocess.py b/elbepack/xmlpreprocess.py
index a3df90e7..0c6b4902 100644
--- a/elbepack/xmlpreprocess.py
+++ b/elbepack/xmlpreprocess.py
@@ -24,6 +24,7 @@ class XMLPreprocessError(Exception):
 def xmlpreprocess(fname, output, variants=[]):
 
     # pylint: disable=too-many-locals
+    # pylint: disable=too-many-branches
 
     # first convert variants to a set
     variants = set(variants)
-- 
2.11.0




More information about the elbe-devel mailing list