[tox]
minversion = 3.3.0
isolated_build = True
envlist = py27, py35, py36, py37, py38, py39, doc

[testenv]
whitelist_externals = poetry
commands =
    poetry install -vv --no-root
    poetry run pytest {posargs} tests/

[testenv:doc]
whitelist_externals =
skip_install = true
deps =
    markdown-include
    mkdocs
    pygments
    pygments-github-lexers
    pymdown-extensions
commands =
    mkdocs build -f docs/mkdocs.yml
