[tox] envlist = flake8,linters [testenv] deps = attr twisted sysfs-gpio [flake8] ignore = max-complexity = 14 [testenv:flake8] basepython = python3 skip_install = true deps = flake8 flake8-docstrings>=0.2.7 flake8-import-order>=0.9 commands = flake8 src/trespassed setup.py main.py [testenv:doc8] basepython = python3 skip_install = true deps = sphinx doc8 commands = doc8 docs [testenv:mypy] basepython = python3 skip_install = true deps = mypy-lang typed-ast attr twisted sysfs-gpio setenv = MYPYPATH=stubs commands = mypy --fast-parser src/trespassed [bandit] [testenv:bandit] basepython = python3 skip_install = true deps = bandit commands = bandit -r src/trespassed main.py --ini tox.ini [testenv:pylint] basepython = python3 skip_install = true deps = pyflakes pylint commands = pylint src/trespassed [testenv:linters] basepython = python3 skip_install = true setenv = {[testenv:mypy]setenv} deps = {[testenv:flake8]deps} #{[testenv:pylint]deps} {[testenv:bandit]deps} {[testenv:mypy]deps} commands = {[testenv:flake8]commands} #{[testenv:pylint]commands} {[testenv:bandit]commands} {[testenv:mypy]commands}