-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (55 loc) · 1.22 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
# https://github.com/ComPWA/ampform/blob/2ad1f7d14dc9bb58045a0fa83af4a353232dc5a6/tox.ini
[tox]
envlist =
py,
doc,
sty,
passenv = PYTHONPATH
skip_install = True
skip_missing_interpreters = True
skipsdist = True
[testenv]
description =
Run all unit tests
allowlist_externals =
pytest
commands =
pytest {posargs}
[testenv:doc]
description =
Build documentation and API through Sphinx
changedir = docs
allowlist_externals =
make
commands =
make html
[testenv:doclive]
description =
Set up a server to directly preview changes to the HTML pages
allowlist_externals =
sphinx-autobuild
passenv =
EXECUTE_NB
TERM
commands =
sphinx-autobuild \
--watch docs \
--watch yeast_mrcnn \
--re-ignore .*/.ipynb_checkpoints/.* \
--re-ignore .*/__pycache__/.* \
--re-ignore docs/_build/.* \
--re-ignore docs/api/.* \
--re-ignore docs/examples/.*.gif \
--re-ignore docs/gallery/.* \
--open-browser \
docs/ docs/_build/html
[testenv:docnb]
description =
Build documentation through Sphinx WITH output of Jupyter notebooks
setenv =
EXECUTE_NB = "yes"
changedir = docs
allowlist_externals =
make
commands =
make html