[tox]
minversion = 4.0
envlist = clean,py36,py37,py38,py39,py310,py311,py312,report
skip_missing_interpreters = true

[testenv]
allowlist_externals =
	garden
passenv =
	FORCE_COLOR
commands =
	garden test -- --cov --cov-append --cov-report=term-missing
depends =
	{py36,py37,py38,py39,py310,py311,py312}: clean
	report: py36,py37,py38,py39,py310,py311,py312
extras =
	cov
	testing
sitepackages = true
usedevelop = true

[testenv:check]
allowlist_externals =
	garden
commands =
	garden check {posargs}
extras =
	docs
	dev
	testing
sitepackages = true
skip_install = true

[testenv:clean]
deps = coverage
skip_install = true
commands = python3 -m coverage erase

[testenv:docs]
extras =
	docs
	testing
changedir = docs
commands =
	python3 -m sphinx -v docs html

[testenv:report]
deps = coverage
skip_install = true
commands =
	python3 -m coverage report
	python3 -m coverage html
