[tox] envlist = py{36,37,38},mypy [testenv] commands = {envpython} -m unittest discover --start-directory ./tests [testenv:mypy] deps = mypy commands = mypy