From 3a42564af22fdb2f828c08f951a0891ed3963aa5 Mon Sep 17 00:00:00 2001 From: WillyPillow Date: Mon, 31 Aug 2020 02:08:44 +0800 Subject: [PATCH] qvm-template: Make pylint happy --- .pylintrc | 2 ++ qubesadmin/tools/qvm_template.py | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.pylintrc b/.pylintrc index 689b0e6..64286eb 100644 --- a/.pylintrc +++ b/.pylintrc @@ -148,6 +148,8 @@ ext-import-graph= # not be disabled) int-import-graph= +ignored-modules=rpm,dnf + [DESIGN] diff --git a/qubesadmin/tools/qvm_template.py b/qubesadmin/tools/qvm_template.py index 7457924..2f8b5d3 100644 --- a/qubesadmin/tools/qvm_template.py +++ b/qubesadmin/tools/qvm_template.py @@ -20,13 +20,14 @@ import tempfile import time import typing +import rpm +import tqdm +import xdg.BaseDirectory + import qubesadmin import qubesadmin.tools import qubesadmin.tools.qvm_kill import qubesadmin.tools.qvm_remove -import rpm -import tqdm -import xdg.BaseDirectory PATH_PREFIX = '/var/lib/qubes/vm-templates' TEMP_DIR = '/var/tmp'