-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
54 lines (49 loc) · 945 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
52
53
54
[gh-actions]
python =
3.7: py37, typing
3.8: py38, typing
3.9: py39, typing, pypi-description
3.10: py310, typing
3.11: py311, typing
3.12: py312, typing
pypi-description: pypi-description
[tox]
isolated_build = True
envlist =
py37
py38
py39
py310
py311
py312
lint
typing
pypi-description
[testenv]
skip_missing_interpreters = True
extras = test
commands =
coverage run -m pytest {posargs}
coverage xml
coverage html
[testenv:lint]
basepython = python3.9
skip_install = true
deps =
pre-commit
passenv = HOMEPATH # needed on Windows
commands =
pre-commit run --all-files
[testenv:typing]
deps = mypy>=1.4.1
commands =
mypy --strict src/extendable_pydantic
[testenv:pypi-description]
basepython = python3.9
skip_install = true
deps =
twine
pip >= 18.0.0
commands =
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*