forked from mkdocs/mkdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
76 lines (66 loc) · 2.2 KB
/
tox.ini
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[tox]
envlist =
py36-{unittests,min-req},
py{37,38,39,310,py3}-{unittests,min-req,integration,integration-no-babel},
black, isort, flake8, markdown-lint, linkchecker, jshint, csslint, nobabel, codespell
[testenv]
passenv = LANG
deps=
py{37,38,39,310,py3}-integration: -rrequirements/project.txt
py{37,38,39,310,py3}-min-req: -rrequirements/project-min.txt
py{36,37,38,39,310,py3}-{unittests,min-req}: -rrequirements/test.txt
commands=
{envpython} --version
py{36,37,38,39,310,py3}-{unittests,min-req}: {envbindir}/coverage run --source=mkdocs --omit 'mkdocs/tests/*' -m unittest discover -p '*tests.py' mkdocs --top-level-directory .
py{36,37,38,39,310,py3}-unittests: {envbindir}/coverage xml
py{36,37,38,39,310,py3}-unittests: {envbindir}/coverage report --show-missing
py{37,38,39,310,py3}-integration: {envpython} -m mkdocs.tests.integration --output={envtmpdir}/builds
[testenv:black]
deps=black
skip_install=true
commands={envbindir}/black -l100 -tpy36 --skip-string-normalization mkdocs
[testenv:isort]
deps=isort
skip_install=true
commands={envbindir}/isort mkdocs
[testenv:flake8]
deps=flake8
skip_install=true
commands={envbindir}/flake8 mkdocs
[testenv:markdown-lint]
whitelist_externals=npm
skip_install=true
passenv=*
commands=
npm exec --yes -- markdownlint-cli README.md CONTRIBUTING.md docs/ --ignore docs/CNAME
[testenv:codespell]
deps=codespell
skip_install=true
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=npm
skip_install=true
passenv=*
commands=npm exec --yes -- jshint mkdocs/
[testenv:csslint]
whitelist_externals=npm
skip_install=true
passenv=*
commands=npm exec --yes -- csslint mkdocs/
[testenv:py{37,38,39,310,py3}-integration-no-babel]
passenv = LANG
deps=-rrequirements/project.txt
commands=
pip uninstall -y babel
{envpython} -m mkdocs.tests.integration --output={envtmpdir}/builds