-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
34 lines (28 loc) · 855 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
# 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}`
# To run in parallel using `tox -p` (this does not appear to work for this repo)
# To rebuild the tox environment, for example when dependencies change, use
# `tox -r`
[tox]
envlist = py{311,312}
skip_missing_interpreters = true
[testenv]
usedevelop=true
recreate = false
[testenv:py{311,312}-pre-commit]
extras = code_style
commands = pre-commit run {posargs}
[testenv:py{311,312}-sphinx{5,6}]
extras = testing
deps =
sphinx5: sphinx>=5,<6
sphinx5: sphinx>=6,<7
commands = pytest --verbose {posargs}
[testenv:docs-{update,clean}]
extras = rtd
whitelist_externals = rm
commands =
clean: rm -rf docs/build
sphinx-build {posargs} -b html docs/source docs/build/html