ceph/qa/tox.ini
Thomas Bechtold bdcc94a1d1 qa: Run flake8 on python2 and python3
To be able to catch problems with python2 *and* python3, run flake8
with both versions. From the flake8 homepage:

It is very important to install Flake8 on the correct version of
Python for your needs. If you want Flake8 to properly parse new
language features in Python 3.5 (for example), you need it to be
installed on 3.5 for Flake8 to understand those features. In many
ways, Flake8 is tied to the version of Python on which it runs.

Also fix the problems with python3 on the way.
Note: This requires now the six module for teuthology. But this is
already an install_require in teuthology itself.

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
2019-12-13 09:24:20 +01:00

17 lines
273 B
INI

[tox]
envlist = flake8-py2, flake8-py3
skipsdist = True
[testenv:flake8-py2]
basepython = python2
deps=
flake8
commands=flake8 --select=F,E9 --exclude=venv,.tox
[testenv:flake8-py3]
basepython = python3
deps=
flake8
commands=flake8 --select=F,E9 --exclude=venv,.tox