-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
40 lines (36 loc) · 883 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
[tox]
minversion = 3.14.0
envlist = lint, py310, py39, py38, py37, pypy3
isolated_build = true
skip_missing_interpreters = true
[testenv]
deps =
pip >= 20.1
coverage >= 5
pytest-coverage
pytest >= 4
virtualenv >= 20
passenv = https_proxy http_proxy no_proxy HOME PYTEST_* PIP_* CI_RUN TERM
install_command = python -m pip install {opts} {packages} --disable-pip-version-check
commands =
pytest --cov-report term-missing --cov {envsitepackagesdir}/pkg_metadata tests {posargs}
[testenv:lint]
deps = pre-commit >= 2.0.0
skip_install = True
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
deps =
sphinx
furo
myst_parser
commands =
sphinx-build -j auto -b html docs/source docs/build
[testenv:build]
deps =
build
twine
skip_install = True
commands =
python -m build
python -m twine check dist/*