-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
35 lines (31 loc) · 891 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
35
# Tox configuration file
# Read more under https://tox.readthedocs.org/
# THIS SCRIPT IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
[tox]
minversion = 3.15
envlist = default
[testenv]
deps = pytest
description = invoke pytest to run automated tests
setenv =
TOXINIDIR = {toxinidir}
passenv =
HOME
commands =
pytest {posargs} --doctest-modules --doctest-continue-on-failure
extras =
all
testing
[testenv:{docs,doctests}]
description = invoke sphinx-build to build the docs/run doctests
setenv =
DOCSDIR = {toxinidir}/docs
BUILDDIR = {toxinidir}/docs/_build
docs: BUILD = html
doctests: BUILD = doctest
deps =
sphinx
# sphinx_rtd_theme
# any docs/requirements.txt for/shared with Read The Docs?
commands =
sphinx-build -b {env:BUILD} -d "{env:BUILDDIR}/doctrees" "{env:DOCSDIR}" "{env:BUILDDIR}/{env:BUILD}" {posargs}