Fixes all the pycodestyle issues in the Python bindings, overring one
that does not make sense to change (and it's in setup.py, so almost
irrelevant).
Add a simple optional pycodestyle-based test to avoid regressions in the
future.
Pino Toscano (8):
python: PEP 8: adapt empty lines
python: PEP 8: adapt whitespaces in lines
python: tests: catch specific exception
python: tests: improve variable naming
python: tests: remove unused imports
python: improve errors in inspect_vm example
python: skip line length check in license line
python: add a pycodestyle test
config.sh.in | 1 +
generator/python.ml | 5 ++---
m4/guestfs-python.m4 | 3 +++
python/Makefile.am | 5 +++++
python/examples/inspect_vm.py | 7 +++++--
python/setup.py.in | 2 +-
python/t/test020Create.py | 1 +
python/t/test030CreateFlags.py | 3 ++-
python/t/test040CreateMultiple.py | 2 ++
python/t/test050HandleProperties.py | 1 +
python/t/test070OptArgs.py | 1 -
python/t/test080Version.py | 2 --
python/t/test090RetValues.py | 10 +++++-----
python/t/test100Launch.py | 1 -
python/t/test410CloseEvent.py | 1 -
python/t/test420LogMessages.py | 1 -
python/t/test430ProgressMessages.py | 3 ++-
python/t/test800ExplicitClose.py | 1 -
python/t/test820RHBZ912499.py | 3 +--
python/t/test910Libvirt.py | 1 -
python/t/tests_helper.py.in | 2 +-
python/test-pycodestyle.sh | 28 ++++++++++++++++++++++++++++
22 files changed, 60 insertions(+), 24 deletions(-)
create mode 100755 python/test-pycodestyle.sh
--
2.24.1