forked from sphinx-extensions2/sphinx-timeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (29 loc) · 753 Bytes
/
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
# configuration to run via tox
[tox]
envlist = py38
[testenv]
usedevelop = true
[testenv:py{38,39,310,311}]
description = Run pytest
extras = testing
commands = pytest {posargs}
[testenv:docs-{rtd,furo,pst}]
description = Build the documentation
extras =
docs
furo: furo
pst: pst
rtd: rtd
setenv =
BUILDER = {env:BUILDER:html}
furo: HTML_THEME = furo
pst: HTML_THEME = pydata_sphinx_theme
rtd: HTML_THEME = sphinx_rtd_theme
whitelist_externals =
echo
rm
commands_pre = rm -rf docs/_build/{env:BUILDER}
commands = sphinx-build -nW --keep-going -b {env:BUILDER} {posargs} docs/ docs/_build/{env:BUILDER}
commands_post = echo "open file://{toxinidir}/docs/_build/html/index.html"
[flake8]
max-line-length = 100