<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/python/tests/flake8.sh, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/python/tests/flake8.sh?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/python/tests/flake8.sh?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2021-07-01T01:54:04+00:00</updated>
<entry>
<title>python: only check qemu/ subdir with flake8</title>
<updated>2021-07-01T01:54:04+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-29T21:43:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=0d52c19a599a45c800fb58f3ad359f6472a18e3f'/>
<id>urn:sha1:0d52c19a599a45c800fb58f3ad359f6472a18e3f</id>
<content type='text'>
flake8 is a little eager to check everything it can. Limit it to
checking inside the qemu namespace directory only. Update setup.cfg now
that the exclude patterns are no longer necessary.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Willian Rampazzo &lt;willianr@redhat.com&gt;
Reviewed-by: Wainer dos Santos Moschetta &lt;wainersm@redhat.com&gt;
Tested-by: Wainer dos Santos Moschetta &lt;wainersm@redhat.com&gt;
Message-id: 20210629214323.1329806-11-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>python: add avocado-framework and tests</title>
<updated>2021-06-01T20:21:21+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-05-27T21:17:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=31622b2a8ac769b3cef730d3a24ed209e3861cbc'/>
<id>urn:sha1:31622b2a8ac769b3cef730d3a24ed209e3861cbc</id>
<content type='text'>
Try using avocado to manage our various tests; even though right now
they're only invoking shell scripts and not really running any
python-native code.

Create tests/, and add shell scripts which call out to mypy, flake8,
pylint and isort to enforce the standards in this directory.

Add avocado-framework to the setup.cfg development dependencies, and add
avocado.cfg to store some preferences for how we'd like the test output
to look.

Finally, add avocado-framework to the Pipfile environment and lock the
new dependencies. We are using avocado &gt;= 87.0 here to take advantage of
some features that Cleber has helpfully added to make the test output
here *very* friendly and easy to read for developers that might chance
upon the output in Gitlab CI.

[Note: ALL of the dependencies get updated to the most modern versions
that exist at the time of this writing. No way around it that I have
seen. Not ideal, but so it goes.]

Provided you have the right development dependencies (mypy, flake8,
isort, pylint, and now avocado-framework) You should be able to run
"avocado --config avocado.cfg run tests/" from the python folder to run
all of these linters with the correct arguments.

(A forthcoming commit adds the much easier 'make check'.)

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Cleber Rosa &lt;crosa@redhat.com&gt;
Tested-by: Cleber Rosa &lt;crosa@redhat.com&gt;
Message-id: 20210527211715.394144-28-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
</feed>
