forked from executablebooks/sphinx-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
76 lines (71 loc) · 2.05 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
# To use tox, see https://tox.readthedocs.io
# Simply pip or conda install tox
# If you use conda, you may also want to install tox-conda
# then run `tox` or `tox -- {pytest args}`
# run in parallel using `tox -p`
[tox]
envlist = py38
[testenv]
usedevelop = true
[testenv:py{37,38,39,310}]
description = Run unit tests with this Python version
extras =
testing
deps =
black
flake8~=3.8
flake8-bugbear~=21.3
commands = pytest {posargs}
[testenv:docs-{update,clean}-{alabaster,rtd,pydata,sbt,furo}]
description =
clean: Run documentation build for this theme (removing existing builds)
update: Run documentation build for this theme (reusing existing builds)
extras =
rtd
rtd: theme_rtd
pydata: theme_pydata
sbt: theme_sbt
furo: theme_furo
whitelist_externals =
clean: rm
echo
setenv =
update: SKIP_APIDOC = true
alabaster: SPHINX_THEME = alabaster
rtd: SPHINX_THEME = sphinx_rtd_theme
pydata: SPHINX_THEME = pydata_sphinx_theme
sbt: SPHINX_THEME = sphinx_book_theme
furo: SPHINX_THEME = furo
commands =
clean: rm -rf docs/_build/{posargs:html}
sphinx-build -nW --keep-going -b {posargs:html} docs/ docs/_build/{posargs:html}
commands_post = echo "open docs/_build/{posargs:html}/index.html"
[testenv:docs-live-{alabaster,rtd,pydata,sbt,furo}]
description = Start documentation autobuild for this theme
extras =
rtd
rtd: theme_rtd
pydata: theme_pydata
sbt: theme_sbt
furo: theme_furo
deps =
pre-commit
sphinx-autobuild
setenv =
alabaster: SPHINX_THEME = alabaster
rtd: SPHINX_THEME = sphinx_rtd_theme
pydata: SPHINX_THEME = pydata_sphinx_theme
sbt: SPHINX_THEME = sphinx_book_theme
furo: SPHINX_THEME = furo
commands =
sphinx-autobuild \
--watch sphinx_design \
--watch style \
--pre-build "npm run css" \
--re-ignore sphinx_design/compiled/.* \
--re-ignore docs/_build/.* \
--port 0 --open-browser \
-n -b {posargs:html} docs/ docs/_build/{posargs:html}
[flake8]
max-line-length = 100
extend-ignore = E203