Files
mkdocs/tox.ini
Waylan Limberg 19e24350f2 Switch Markdown linter to node based markdownlint-cli.
I've prefered the node based linter to the ruby one, but it didn't have
a CLI until recently. Also the config file is in an easier format.
2018-07-13 20:13:50 -04:00

48 lines
1.4 KiB
INI

[tox]
envlist =
py{27,34,35,36,37,py,py3}-{unittests,integration,min-req},
flake8, markdown-lint, linkchecker, jshint, csslint
[testenv]
passenv = LANG
deps=
py{27,34,35,36,37,py,py3}-{unittests,integration}: -rrequirements/project.txt
py{27,34,35,36,37,py,py3}-min-req: -rrequirements/project-min.txt
py{27,34,35,36,37,py,py3}-{unittests,min-req}: -rrequirements/test.txt
py{27,py}-{unittests,min-req}: backports.tempfile
commands=
{envpython} --version
py{27,34,35,36,37,py,py3}-{unittests,min-req}: {envbindir}/nosetests --with-coverage --cover-package mkdocs mkdocs
py{27,34,35,36,37,py,py3}-integration: {envpython} -m mkdocs.tests.integration --output={envtmpdir}/builds
[testenv:flake8]
basepython = python2.7
deps=-rrequirements/test.txt
commands={envbindir}/flake8 mkdocs --max-line-length=119 --exclude=mkdocs/compat.py
[testenv:markdown-lint]
whitelist_externals = markdownlint
passenv = *
commands=markdownlint README.md CONTRIBUTING.md docs/
[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/