forked from aiidateam/kiwipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
55 lines (46 loc) · 1.23 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
# 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`
# see also test/rmq/docker-compose.yml to start a rabbitmq server, required for the those tests
[tox]
envlist = py37
[testenv]
usedevelop = true
[testenv:py{37,38,39}]
description = Run the unit tests
extras =
rmq
tests
commands = pytest {posargs}
[testenv:pre-commit]
description = Run the style checks and formatting
extras =
rmq
pre-commit
tests
commands = pre-commit run {posargs}
[testenv:docs-{update,clean}]
description = Build the documentation
extras =
rmq
docs
whitelist_externals = rm
commands =
clean: rm -rf docs/_build
sphinx-build -nW --keep-going -b {posargs:html} docs/source/ docs/_build/{posargs:html}
[testenv:docs-live]
description = Build the documentation and launch browser (with live updates)
extras =
rmq
docs
deps = sphinx-autobuild
commands =
sphinx-autobuild \
--re-ignore _build/.* \
--port 0 --open-browser \
-n -b {posargs:html} docs/source/ docs/_build/{posargs:html}
[pytest]
filterwarnings =
ignore::DeprecationWarning:distutils: