Update tox.ini to check more stuffs (#103)

This commit is contained in:
Ernesto Rodriguez Ortiz
2017-10-26 20:10:44 -04:00
committed by GitHub
parent 34d5a4cd5a
commit c6015db8b4
2 changed files with 22 additions and 2 deletions

6
requirements-test.txt Normal file
View File

@@ -0,0 +1,6 @@
flake8
flake8-copyright
isort
pep8<1.6
coverage

18
tox.ini
View File

@@ -1,5 +1,19 @@
[tox] [tox]
envlist = py27,py34,py35,py36 envlist = flake8, isort, py27,py34,py35,py36
[testenv] [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