[tox] minversion = 2.4 envlist = isort-check, lint, mypy, py{34,35,36,37,py3} [testenv] deps = pytest coverage: pytest-cov extras = pipfile pyproject requirements setenv = coverage: PYTEST_ADDOPTS=--cov {env:PYTEST_ADDOPTS:} commands = pytest {posargs} [testenv:isort-check] basepython = python3 commands = python setup.py isort [testenv:lint] deps = flake8==3.7.6 commands = flake8 skip_install = True [testenv:mypy] basepython = python3 deps = -r{toxinidir}/mypy-requirements.txt commands = mypy . skip_install = True