Added a tox job for running flake8 under Python 3

Change-Id: I04a78cc5e3613d1d765d716633bca297bf7207b6
This commit is contained in:
Alex Gaynor 2014-05-16 14:44:18 -04:00
parent 04b486e10f
commit fac6568e8e
1 changed files with 10 additions and 0 deletions

10
tox.ini
View File

@ -35,6 +35,16 @@ commands =
flake8 swift test doc setup.py
flake8 --filename=swift* bin
[testenv:py3pep8]
basepython = python3
install_command = echo {packages}
commands =
# Gross hack. There's no other way to get it to /not/ install swift itself
# (which triggers installing eventlet) but also get flake8 installed.
pip install flake8
flake8 swift test doc setup.py
flake8 --filename=swift* bin
[testenv:func]
commands = nosetests {posargs:test/functional}