[tox] envlist = {py36,py37,py38} lint sort format type skip_missing_interpreters = True isolated_build = True [testenv] deps = pytest pytest-cov pytest-mock commands = pytest test/ --cov={toxinidir}/flat_tree/ --no-cov-on-fail {posargs} [testenv:lint] skipdist = True deps = flake8 commands = flake8 {posargs} flat_tree/ test/ [testenv:sort] skipdist = True deps = isort commands = isort {posargs:-rc -c} -sp setup.cfg flat_tree/ test/ [testenv:format] skipdist = True deps = black commands = black {posargs:--check} flat_tree/ test/ [testenv:type] skipdist = True deps = mypy commands = mypy flat_tree/ test/ [testenv:release] deps = twine commands = rm -rf {toxworkdir}/dist python -m setup sdist --dist-dir {toxworkdir}/dist bdist_wheel python -m setup sdist --dist-dir {toxworkdir}/dist bdist_egg twine upload {toxworkdir}/dist/* whitelist_externals = rm