[tox]
envlist = py36,py37,py38,py39,py310,pep8,packaging,noextra,mypy

[testenv]
deps =
    pytest
commands =
    pytest --strict-markers {posargs}
extras = md

[testenv:mypy]
basepython = python3
deps =
    mypy
    types-bleach
    types-docutils
    types-Pygments
commands = mypy readme_renderer

[testenv:pep8]
basepython = python3
deps =
    flake8
    pep8-naming
commands = flake8 .

[testenv:packaging]
deps =
    check-manifest
    build
    twine
commands =
    check-manifest
    python -m build
    python -m twine check dist/*

[testenv:noextra]
basepython = python3
extras =

[flake8]
exclude = .tox,*.egg
select = E,W,F,N
max-line-length = 88
