mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
The main goal was to exclude translations, because obviously they're not in English. But this also starts with an allowlist on top-level directories because locally myself I had a few false positives such as '.git', 'node_modules'.
65 lines
1.9 KiB
INI
65 lines
1.9 KiB
INI
[tox]
|
|
envlist =
|
|
py{36,37,38,39,py3}-{unittests,min-req,integration,integration-no-babel},
|
|
flake8, markdown-lint, linkchecker, jshint, csslint, nobabel, codespell
|
|
|
|
[testenv]
|
|
passenv = LANG
|
|
deps=
|
|
py{36,37,38,39,py3}-{unittests,integration}: -rrequirements/project.txt
|
|
py{36,37,38,39,py3}-min-req: -rrequirements/project-min.txt
|
|
py{36,37,38,39,py3}-{unittests,min-req}: -rrequirements/test.txt
|
|
commands=
|
|
{envpython} --version
|
|
py{36,37,38,39,py3}-{unittests,min-req}: {envbindir}/coverage run --source=mkdocs --omit 'mkdocs/tests/*' -m unittest discover -p '*tests.py' mkdocs
|
|
py{36,37,38,39,py3}-unittests: {envbindir}/coverage xml
|
|
py{36,37,38,39,py3}-unittests: {envbindir}/coverage report --show-missing
|
|
py{36,37,38,39,py3}-integration: {envpython} -m mkdocs.tests.integration --output={envtmpdir}/builds
|
|
|
|
[testenv:flake8]
|
|
deps=-rrequirements/test.txt
|
|
commands={envbindir}/flake8 mkdocs --max-line-length=119
|
|
|
|
[testenv:markdown-lint]
|
|
whitelist_externals=
|
|
node
|
|
markdownlint
|
|
passenv = *
|
|
commands=
|
|
node --version
|
|
markdownlint --version
|
|
markdownlint README.md CONTRIBUTING.md docs/ --ignore docs/CNAME
|
|
|
|
[testenv:codespell]
|
|
deps=codespell
|
|
commands=
|
|
{envbindir}/codespell mkdocs docs *.* -S .tox -S LC_MESSAGES -S '*.min.js' -S 'lunr*.js' -S fontawesome-webfont.svg -S tinyseg.js
|
|
|
|
[testenv:linkchecker]
|
|
basepython = python2.7
|
|
passenv=*
|
|
deps=
|
|
mdx_gh_links
|
|
requests<=2.9.0
|
|
LinkChecker
|
|
commands=
|
|
{envpython} -m mkdocs.tests.integration --output={envtmpdir}/builds
|
|
linkchecker {envtmpdir}/builds/
|
|
|
|
[testenv:jshint]
|
|
whitelist_externals = jshint
|
|
passenv=*
|
|
commands=jshint mkdocs/
|
|
|
|
[testenv:csslint]
|
|
whitelist_externals = csslint
|
|
passenv=*
|
|
commands=csslint mkdocs/
|
|
|
|
[testenv:py{36,37,38,39,py3}-integration-no-babel]
|
|
passenv = LANG
|
|
deps=-rrequirements/project.txt
|
|
commands=
|
|
pip uninstall -y babel
|
|
{envpython} -m mkdocs.tests.integration --output={envtmpdir}/builds
|