[tox] envlist = py27,flake8 [testenv] deps = pytest commands = py.test {posargs} [testenv:flake8] deps = flake8 commands = flake8 {posargs}