-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
51 lines (45 loc) · 966 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
42
43
44
45
46
47
48
49
50
51
[tox]
envlist = python
minversion = 3.13.2
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
deps =
httpretty
pytest
pytest-cov
commands =
{envpython} -m pytest {posargs:--cov-report=term-missing:skip-covered}
[testenv:build-dists]
basepython = python3
isolated_build = true
# `usedevelop = true` overrides `skip_install` instruction, it's unwanted
usedevelop = false
# don't install dist 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}