SiteGenerator/tox.ini

32 lines
538 B
INI

[tox]
envlist = clean, py39, py310, coverage, security, type-checking
[coverage:run]
include = gsitegen/*.py
branch = true
[testenv:clean]
whitelist_externals = rm
commands =
rm -f .coverage
[testenv]
usedevelop = true
extras = test
commands =
coverage run --append -m pytest {posargs:tests}
[testenv:coverage]
commands =
coverage report -i
coverage html -i
coverage xml -i
[testenv:type-checking]
commands =
mypy gsitegen --ignore-missing-imports
[testenv:security]
commands =
bandit --recursive gsitegen --skip B101