[tox]
envlist = py{38, 39, 310, 311, 312}, doc, codestyle
isolated_build = True

[testenv]
changedir={envdir}
extras =
    test
deps =
    pytest
commands = pytest --pyargs numina {posargs}

[testenv:docs]
changedir = doc
extras = 
    docs
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:codestyle]
changedir = src
description = check code style with flake8
skip_install = true
deps = flake8
commands = flake8 numina --count --max-line-length=120
