diff options
Diffstat (limited to 'pylog/tox.ini')
-rw-r--r-- | pylog/tox.ini | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/pylog/tox.ini b/pylog/tox.ini index bf6b784..355385c 100644 --- a/pylog/tox.ini +++ b/pylog/tox.ini @@ -1,5 +1,11 @@ [tox] -envlist =py,py3,pep8 +envlist = + py27 + py36 + py37 + py38 + pep8 + cover skipsdist = true skip_missing_interpreters = true @@ -7,23 +13,20 @@ skip_missing_interpreters = true downloadcache = ~/cache/pip [testenv] -deps = -r{toxinidir}/requirements.txt - pytest +deps = -r{toxinidir}/test_requirements.txt coverage pytest-cov setenv = PYTHONPATH={toxinidir}/ +commands = pytest -commands = - /usr/bin/find . -type f -name "*.py[c|o]" -delete - py.test +[flake8] +ignore = E271, E125, E128, E127 [testenv:pep8] +basepython = python3 deps=flake8 -commands=flake8 - -[flake8] -show-source = true -exclude = env,venv,.venv,.git,.tox,dist,doc,*egg,build +commands=flake8 onaplogging [testenv:cover] -commands = py.test --cov onaplogging +basepython = python3 +commands = py.test --cov-report term-missing --cov onaplogging |