File: tox.ini

package info (click to toggle)
python-markdown 3.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,128 kB
  • sloc: python: 11,989; makefile: 66; sh: 7
file content (46 lines) | stat: -rw-r--r-- 1,122 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[tox]
envlist = py{38, 39, 310, 311, 312}, pypy{38, 39, 310}, pygments, flake8, checkspelling, pep517check, checklinks
isolated_build = True

[testenv]
extras = testing
deps = pytidylib
allowlist_externals = coverage
commands =
    coverage run --source=markdown -m unittest discover {toxinidir}/tests
    coverage xml
    coverage report --show-missing

[testenv:pygments]
# Run tests with pygments installed (override deps only).
setenv =
    PYGMENTS_VERSION = 2.7.1
deps =
    pytidylib
    pygments=={env:PYGMENTS_VERSION}

[testenv:flake8]
deps = flake8
allowlist_externals = flake8
commands = flake8 {toxinidir}/markdown {toxinidir}/tests
skip_install = true

[testenv:checkspelling]
extras = docs
deps = pyspelling
commands =
    {envpython} -m mkdocs build --strict --config-file {toxinidir}/mkdocs.yml
    {envpython} -m pyspelling --config {toxinidir}/.pyspelling.yml

[testenv:checklinks]
whitelist_externals = markdown-link-check
deps =
commands = {toxinidir}/checklinks.sh

[testenv:pep517check]
deps = pep517
commands = python -m pep517.check {toxinidir}
skip_install = true

[flake8]
max-line-length = 119