From c6015db8b4ea847821b4f829bd2a948d57d5cb77 Mon Sep 17 00:00:00 2001 From: Ernesto Rodriguez Ortiz Date: Thu, 26 Oct 2017 20:10:44 -0400 Subject: [PATCH] Update tox.ini to check more stuffs (#103) --- requirements-test.txt | 6 ++++++ tox.ini | 18 ++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 requirements-test.txt 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 +