-
Notifications
You must be signed in to change notification settings - Fork 25
/
tox.ini
81 lines (75 loc) · 1.32 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
[tox]
envlist =
py312-cov
py312
py311
py310
py39
py38
docs
lint
requires = tox>=4.2
[testenv]
description =
Run tests under {basepython}
cov: with coverage
passenv =
CI
PYTEST_*
VIRTUALENV_*
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
VIRTUALENV_NO_SETUPTOOLS = true
VIRTUALENV_NO_WHEEL = true
extras =
test
commands =
make check
allowlist_externals =
make
package = wheel
wheel_build_env = .pkg
[testenv:py312-cov]
commands =
make coverage
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
setenv =
VIRTUALENV_NO_SETUPTOOLS = false
VIRTUALENV_NO_WHEEL = false
basepython = python3.10
extras =
docs
commands =
make docs
[testenv:lint]
description = lint code in {basepython}
basepython = python3.10
extras =
lint
commands =
make lint
whitelist_externals =
make
prettier
[testenv:release]
description = cut a new release
setenv =
{[testenv:docs]setenv}
basepython = python3.10
skip_install = true
deps =
towncrier>=22.12
commands =
make gen_news VERSION={posargs}
[testenv:dev]
description = generate a development environment
setenv =
{[testenv:docs]setenv}
basepython = python3.10
extras =
docs
lint
test
commands =
python -c 'import sys; print(sys.executable)'