-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
30 lines (26 loc) · 630 Bytes
/
tox.ini
File metadata and controls
30 lines (26 loc) · 630 Bytes
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
[tox]
envlist = typecheck,py{37,38,39,310,311,312}
isolated_build = True
[pytest]
timeout = 30
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
description = run py.test tests
deps = -r requirements-test.txt
commands =
# this ugly hack is here because:
# https://github.com/tox-dev/tox/issues/149
pip install -q -r '{toxinidir}'/requirements-test.txt
'{envpython}' -m pytest {posargs}
[testenv:typecheck]
description = run type checks
deps = -r requirements-test.txt
commands =
mypy --strict {posargs:outsetapy}