sdk-python/tox.ini

36 lines
835 B
INI

[tox]
envlist = py{3.6,3.7},pep8
skipsdist = True
[testenv]
basepython =
pep8: python3
py3.6: python3.6
py3.7: python3.7
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
commands = find . -type f -name "*.pyc" -delete
whitelist_externals = find
rm
go
docker
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:py3.6]
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
[testenv:py3.7]
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
[flake8]
ignore = H405,H404,H403,H401,H306
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,docs,venv,.venv