[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 -r{toxinidir}/docs-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,S101,N802,N803,N806,I202,I201 show-source = True exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,docs,venv,.venv,docs,etc,samples,tests