Added a tox job for running flake8 under Python 3
Change-Id: I04a78cc5e3613d1d765d716633bca297bf7207b6
This commit is contained in:
10
tox.ini
10
tox.ini
@@ -35,6 +35,16 @@ commands =
|
|||||||
flake8 swift test doc setup.py
|
flake8 swift test doc setup.py
|
||||||
flake8 --filename=swift* bin
|
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]
|
[testenv:func]
|
||||||
commands = nosetests {posargs:test/functional}
|
commands = nosetests {posargs:test/functional}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user