[Libguestfs] [v2v PATCH 0/6] Various Python pycodestyle fixes

Pino Toscano ptoscano at redhat.com
Fri Jan 10 15:47:23 UTC 2020


Fixes the majority of the pycodestyle issues in the Python scripts, and
fix the existing test-v2v-python-syntax.sh to use pycodestyle to
actually perform style checks.

Pino Toscano (6):
  PEP 8: adapt whitespaces in lines
  PEP 8: move imports at the top
  PEP 8: adapt empty lines
  tests: find all the Python scripts for syntax checks
  -o rhv-upload: remove unused Python imports
  Revamp check for Python code style

 config.sh.in                                  |   1 +
 m4/guestfs-progs.m4                           |   3 +
 .../ovirtsdk4/__init__.py                     |  39 +++++--
 .../ovirtsdk4/types.py                        |  40 ++++---
 v2v/rhv-upload-createvm.py                    |  20 ++--
 v2v/rhv-upload-deletedisks.py                 |  14 +--
 v2v/rhv-upload-plugin.py                      | 105 ++++++++++++------
 v2v/rhv-upload-precheck.py                    |  18 ++-
 v2v/rhv-upload-vmcheck.py                     |  16 ++-
 v2v/test-v2v-python-syntax.sh                 |  17 ++-
 10 files changed, 165 insertions(+), 108 deletions(-)

-- 
2.24.1




More information about the Libguestfs mailing list