From 95f01e2995cad36c9685080264b4559d5949a500 Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Fri, 17 May 2024 23:00:52 +0200 Subject: [PATCH] virtme-ng: silent lint errors Silent the following lint errors that seems to break CI: setup.py:84:19: E0606: Possibly using variable 'completion_command' before assignment (possibly-used-before-assignment) virtme/commands/configkernel.py:338:53: E0606: Possibly using variable 'updatetarget' before assignment (possibly-used-before-assignment) Signed-off-by: Andrea Righi --- setup.py | 1 + virtme/commands/configkernel.py | 1 + 2 files changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 3b9cb02..1a7de9e 100755 --- a/setup.py +++ b/setup.py @@ -74,6 +74,7 @@ def run(self): cwd="virtme_ng_init", ) # Generate bash autocompletion scripts + completion_command = '' if which("register-python-argcomplete"): completion_command = "register-python-argcomplete" elif which("register-python-argcomplete3"): diff --git a/virtme/commands/configkernel.py b/virtme/commands/configkernel.py index 26058e6..d59fa5b 100644 --- a/virtme/commands/configkernel.py +++ b/virtme/commands/configkernel.py @@ -288,6 +288,7 @@ def do_it(): maketarget: Optional[str] + updatetarget = "" if args.allnoconfig: maketarget = "allnoconfig" updatetarget = "syncconfig"