2016-12-09 09:38:38 +00:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2019-12-05 09:48:32 +00:00
|
|
|
envlist = pep8, py33
|
2016-12-09 09:38:38 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
whitelist_externals = py.test
|
|
|
|
usedevelop = True
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
2017-01-11 15:15:04 +00:00
|
|
|
commands = pytest -vv #{posargs:./tests}
|
2016-12-09 09:38:38 +00:00
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
usedevelop = False
|
|
|
|
whitelist_externals = bash
|
|
|
|
commands =
|
|
|
|
bash -c "find {toxinidir}/* -type f -name '*.py' -print0 | xargs -0 flake8"
|
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
show-source = true
|
|
|
|
builtins = _
|
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg
|