[tox]
envlist = py38, py39, py310, py311, nodb

[testenv]
extras = db,docs,tests
commands = pytest {posargs}

[testenv:nodb]
extras = tests

[testenv:coverage]
basepython = python3.11
extras = db,tests
commands = pytest --cov=wuttjamaican --cov-report=html --cov-fail-under=100

[testenv:docs]
basepython = python3.11
extras = db,docs
changedir = docs
commands = sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs