[tox] envlist = flake8,linters [testenv] deps = pycryptodome [flake8] ignore = D100,D101,D102,D103,D104,E226 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 setup.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 setenv = MYPYPATH=stubs commands = mypy --fast-parser src/c3reference [bandit] skips: B311 [testenv:bandit] basepython = python3 skip_install = true deps = bandit commands = bandit -r src/c3reference --ini tox.ini [testenv:pylint] basepython = python3 skip_install = true deps = pyflakes pylint commands = pylint --rcfile=pylint.rc src/c3reference [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}