2016-01-12 08:51:30 +00:00
|
|
|
[tox]
|
2024-05-22 14:26:48 +00:00
|
|
|
# Python 3.8 is the first version with positional-only argument syntax support
|
|
|
|
|
envlist = py{38,39,3.10,3.11,3.12,py3}
|
2016-04-17 09:06:48 +00:00
|
|
|
skip_missing_interpreters = True
|
2016-01-12 08:51:30 +00:00
|
|
|
|
|
|
|
|
[testenv]
|
2016-07-26 12:36:15 +00:00
|
|
|
commands =
|
2021-06-26 07:49:42 +00:00
|
|
|
coverage run -m unittest discover -t . -s test
|
2016-07-26 12:36:15 +00:00
|
|
|
coverage report
|
2020-11-23 15:06:51 +00:00
|
|
|
coverage xml
|
2021-06-26 12:12:55 +00:00
|
|
|
# mypy won't install on PyPy, so only run the typechecking on CPython
|
2024-05-22 14:26:48 +00:00
|
|
|
!pypy3: python -m mypy.stubtest --allowlist dev/mypy.allowlist contextlib2
|
2016-07-26 12:36:15 +00:00
|
|
|
deps =
|
|
|
|
|
coverage
|
2021-06-26 12:12:55 +00:00
|
|
|
!pypy3: mypy
|
2020-11-23 14:57:55 +00:00
|
|
|
|
|
|
|
|
[gh-actions]
|
|
|
|
|
python =
|
|
|
|
|
3.8: py38
|
2021-06-26 05:38:48 +00:00
|
|
|
3.9: py39
|
2024-05-22 10:54:41 +00:00
|
|
|
3.10: py3.10
|
2024-05-22 11:59:53 +00:00
|
|
|
3.11: py3.11
|
|
|
|
|
3.12: py3.12
|
2024-05-22 14:26:48 +00:00
|
|
|
pypy-3.10: pypy3
|