-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
41 lines (37 loc) · 994 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
36
37
38
39
40
41
[tox]
minversion = 4.0.0
envlist =
build_docs{,_devtowncrier}
codestyle
[testenv]
# Run the tests in a temporary directory to make sure that we don't import
# the package from the source tree
changedir = .tmp/{envname}
description =
run tests
deps =
extras = test
[testenv:codestyle]
skip_install = true
description = Run all style and file checks with pre-commit
deps =
pre-commit
commands =
pre-commit install-hooks
pre-commit run --color always --all-files --show-diff-on-failure
[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands =
pip freeze
sphinx-build -W -b html . _build/html {posargs}
[testenv:build_docs_devtowncrier]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands_pre =
python -m pip install --upgrade git+https://github.com/twisted/towncrier.git
commands =
pip freeze
sphinx-build -W -b html . _build/html {posargs}