diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..fd3bd90 --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1,6 @@ +flake8 +flake8-copyright +isort +pep8<1.6 +coverage + diff --git a/tox.ini b/tox.ini index 0e59285..d39d777 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,19 @@ [tox] -envlist = py27,py34,py35,py36 +envlist = flake8, isort, py27,py34,py35,py36 [testenv] -commands = python -m unittest discover +deps = + -r{toxinidir}/requirements-test.txt +commands = + coverage erase + coverage run -m unittest discover + coverage report --fail-under=75 --omit=.tox/*,/usr/* + +[testenv:flake8] +commands= + flake8 + +[testenv:isort] +commands= + isort --check-only --recursive --diff num2words tests +