[elbe-devel] [PATCH 13/28] pylint pkgutils: disable pylint complaint about import grouping

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


because of the fallback when virtapt is not available, proper
grouping is not possible.

disable the pylint warning locally.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/pkgutils.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/elbepack/pkgutils.py b/elbepack/pkgutils.py
index 5049f188..12d401b5 100644
--- a/elbepack/pkgutils.py
+++ b/elbepack/pkgutils.py
@@ -30,6 +30,11 @@ from pkg_resources import parse_version as V
 from elbepack.shellhelper import CommandError, system
 
 try:
+    # this can not be grouped properly
+    # because we can fallback of apt_pkg is not available
+    #
+    # pylint: disable=ungrouped-imports
+
     from apt_pkg import TagFile
     from elbepack.virtapt import get_virtaptcache
     virtapt_imported = True
-- 
2.11.0




More information about the elbe-devel mailing list