| 1 |
[tox] |
| 2 |
envlist = py{310, 311, 312, 313, 314}, pypy{310, 311}, pygments, flake8, checkspelling, pep517check, checklinks |
| 3 |
isolated_build = True |
| 4 |
|
| 5 |
[testenv] |
| 6 |
extras = testing |
| 7 |
deps = pytidylib |
| 8 |
allowlist_externals = coverage |
| 9 |
commands = |
| 10 |
coverage run --source=markdown -m unittest discover {toxinidir}/tests |
| 11 |
coverage xml |
| 12 |
coverage report --show-missing |
| 13 |
|
| 14 |
[testenv:pygments] |
| 15 |
# Run tests with pygments installed (override deps only). |
| 16 |
setenv = |
| 17 |
PYGMENTS_VERSION = 2.7.1 |
| 18 |
deps = |
| 19 |
pytidylib |
| 20 |
pygments=={env:PYGMENTS_VERSION} |
| 21 |
|
| 22 |
[testenv:flake8] |
| 23 |
deps = flake8 |
| 24 |
allowlist_externals = flake8 |
| 25 |
commands = flake8 {toxinidir}/markdown {toxinidir}/tests |
| 26 |
skip_install = true |
| 27 |
|
| 28 |
[testenv:checkspelling] |
| 29 |
extras = docs |
| 30 |
deps = pyspelling |
| 31 |
commands = |
| 32 |
{envpython} -m mkdocs build --config-file {toxinidir}/mkdocs.yml |
| 33 |
{envpython} -m pyspelling -j 4 --config {toxinidir}/.pyspelling.yml |
| 34 |
|
| 35 |
[testenv:checklinks] |
| 36 |
extras = docs |
| 37 |
deps = |
| 38 |
commands = {envpython} -m mkdocs build --strict --config-file {toxinidir}/mkdocs.yml |
| 39 |
|
| 40 |
[testenv:pep517check] |
| 41 |
deps = pep517 |
| 42 |
commands = python -m pep517.check {toxinidir} |
| 43 |
skip_install = true |
| 44 |
|
| 45 |
[flake8] |
| 46 |
max-line-length = 119 |