-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtox.ini
104 lines (92 loc) · 2.04 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[tox]
envlist = python
minversion = 3.9.0
requires =
setuptools >= 40.9.0
pip >= 19.0.3
# tox-venv >= 0.4.0
isolated_build = true
[testenv]
basepython = python3
isolated_build = true
usedevelop = false
extras =
testing
commands =
{envpython} -m pytest {posargs:--cov-report=term-missing:skip-covered}
[testenv:check-docs]
basepython = python3
isolated_build = true
# `usedevelop = true` overrides `skip_install` instruction, it's unwanted
usedevelop = false
## don't install octomachinery itself in this env
#skip_install = true
#usedevelop = true
extras =
docs
# testing
#deps =
# pip >= 18
changedir = docs
commands =
{envpython} -m sphinx \
-b linkcheck \
-j auto \
-n \
-d {toxinidir}/build/.doctrees \
. \
{toxinidir}/build/html
[testenv:build-docs]
basepython = python3
isolated_build = true
# `usedevelop = true` overrides `skip_install` instruction, it's unwanted
usedevelop = false
## don't install octomachinery itself in this env
#skip_install = true
#usedevelop = true
extras =
docs
# testing
#deps =
# pip >= 18
changedir = docs
commands =
{envpython} -m sphinx \
-j auto \
-n \
-d {toxinidir}/build/.doctrees \
. \
{toxinidir}/build/html
[testenv:build-dists]
basepython = python3
isolated_build = true
# `usedevelop = true` overrides `skip_install` instruction, it's unwanted
usedevelop = false
# don't install octomachinery itself in this env
skip_install = true
deps =
pep517 >= 0.5.0
setenv =
PYPI_UPLOAD = true
commands =
rm -rfv {toxinidir}/dist/
{envpython} -m pep517.build \
--source \
--binary \
--out-dir {toxinidir}/dist/ \
{toxinidir}
whitelist_externals =
rm
[testenv:pre-commit]
isolated_build = true
deps =
pre-commit
pylint
commands =
{envpython} -m pre_commit run {posargs:--all-files}
[testenv:pre-commit-ci]
isolated_build = true
deps =
{[testenv:pre-commit]deps}
commands =
{envpython} -m pre_commit run --config .pre-commit-config.ci.yaml {posargs:--all-files}