graphene/tox.ini
Christoph Zwerschke e441fa72aa
Add Python 3.9 and 3.10 to the test matrix
Also update the test dependencies and adapt two tests (#1400).
2022-01-11 12:13:12 +01:00

38 lines
631 B
INI

[tox]
envlist = py3{6,7,8,9,10}, flake8, mypy, pre-commit
skipsdist = true
[testenv]
deps =
.[test]
setenv =
PYTHONPATH = .:{envdir}
commands =
py{36,37,38,39,310}: pytest --cov=graphene graphene examples {posargs}
[testenv:pre-commit]
basepython = python3.9
deps =
pre-commit>=2.16,<3
setenv =
LC_CTYPE=en_US.UTF-8
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:mypy]
basepython = python3.9
deps =
mypy>=0.931,<1
commands =
mypy graphene
[testenv:flake8]
basepython = python3.9
deps =
flake8>=4,<5
commands =
pip install --pre -e .
flake8 graphene
[pytest]