-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathtox.ini
More file actions
42 lines (37 loc) · 1022 Bytes
/
tox.ini
File metadata and controls
42 lines (37 loc) · 1022 Bytes
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
[tox]
minversion = 3.18.0
envlist = linters,docs
skipsdist = true
[testenv]
usedevelop = True
allowlist_externals = pre-commit
setenv =
VIRTUAL_ENV={envdir}
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
pre-commit
commands =
stestr run {posargs}
pre-commit run --all-files --show-diff-on-failure {posargs}
[testenv:venv]
commands = {posargs:}
[testenv:docs]
sitepackages = False
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
commands =
sphinx-build -b html doc/source doc/build/html
[testenv:pdf-docs]
allowlist_externals = make
sitepackages = False
deps = {[testenv:docs]deps}
commands =
sphinx-build -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:linters]
deps = pre-commit
allowlist_externals = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure {posargs}