contextlib2/tox.ini
Nick Coghlan 9a1453b673 Issue #37: Use mypy.stubcheck to validate stub file
* use mypy.stubcheck to ensure stub API matches module API
* sync latest typeshed stub with nullcontext API fix
* use allowlist to ignore deliberately omitted deprecated APIs
2021-06-27 16:04:15 +10:00

23 lines
477 B
INI

[tox]
envlist = py{36,37,38,39,3_10,py3}
skip_missing_interpreters = True
[testenv]
commands =
coverage run -m unittest discover -t . -s test
coverage report
coverage xml
# mypy won't install on PyPy, so only run the typechecking on CPython
!pypy3: mypy.stubtest --allowlist dev/mypy.allowlist contextlib2
deps =
coverage
!pypy3: mypy
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py3_10
pypy3: pypy3