Skip to content

Commit

Permalink
virtme-ng: silent lint errors
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Andrea Righi committed May 17, 2024
1 parent 103ee69 commit 95f01e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down
1 change: 1 addition & 0 deletions virtme/commands/configkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def do_it():

maketarget: Optional[str]

updatetarget = ""
if args.allnoconfig:
maketarget = "allnoconfig"
updatetarget = "syncconfig"
Expand Down

0 comments on commit 95f01e2

Please sign in to comment.