[tox] envlist = test,lint,flake8 skipsdist = True [testenv] basepython = python3 setenv = script = compile_and_test_for_board.py commands = test: {[testenv:test]commands} lint: {[testenv:lint]commands} flake8: {[testenv:flake8]commands} [testenv:test] deps = pytest commands = pytest -v --doctest-modules [testenv:lint] deps = pylint commands = pylint {env:script} tests [testenv:flake8] deps = flake8 commands = flake8 {env:script} tests