File: tox.ini

package info (click to toggle)
python-sphinx-examples 0.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 152 kB
  • sloc: python: 127; makefile: 22
file content (41 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (2)
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
# To use tox, see https://tox.readthedocs.io

[tox]
envlist = py39-sphinx3
isolated_build = True
passenv=TERM

# Use tox.ini for flake8 config because it does not yet support pyproject.toml
[flake8]
max-line-length = 100
extend-ignore = E203

[testenv]
# only recreate the environment when we use `tox -r`
recreate = false

[testenv:docs]
description = Build the documentation
extras =
    sphinx
deps =
    ipython
    -e.
commands =
    sphinx-build \
        -n -b {posargs:html} docs/ docs/_build/{posargs:html}

[testenv:docs-live]
description = Auto-build and preview the documentation in the browser
deps =
    sphinx-autobuild
    ipython
extras =
    sphinx
commands =
    pip install -e .
    sphinx-autobuild \
        --re-ignore _build/.* \
        --watch sphinx_examples \
        --port 0 --open-browser \
        -n -b {posargs:html} docs/ docs/_build/{posargs:html}