python: Add iotest linters to test suite
Run mypy and pylint on the iotests files directly from the Python CI test infrastructure. This ensures that any accidental breakages to the qemu.[qmp|aqmp|machine|utils] packages will be caught by that test suite. It also ensures that these linters are run with well-known versions and test against a wide variety of python versions, which helps to find accidental cross-version python compatibility issues. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-id: 20211019144918.3159078-15-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
558dbe9935
commit
461044ceb4
4
python/tests/iotests-mypy.sh
Executable file
4
python/tests/iotests-mypy.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
cd ../tests/qemu-iotests/
|
||||
python3 -m linters --mypy
|
4
python/tests/iotests-pylint.sh
Executable file
4
python/tests/iotests-pylint.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
cd ../tests/qemu-iotests/
|
||||
python3 -m linters --pylint
|
Loading…
Reference in New Issue
Block a user