[tox] envlist = py,flake8,black [testenv] extras = test commands = pytest {posargs} [testenv:flake8] skip_install = true deps = flake8 commands = flake8 rsendmail.py sshsendmail.py [testenv:black] skip_install = true deps = black commands = black --diff --check rsendmail.py sshsendmail.py