Update tox

This commit is contained in:
Jonathan Kim 2021-07-19 07:10:33 +01:00
parent 9d8a4ec83c
commit 6d91caadac

33
tox.ini
View File

@ -1,37 +1,42 @@
[tox]
envlist = flake8,py36,py37,py38,pre-commit,mypy
skipsdist = true
envlist = py{36,37,38,39,310},flake8,pre-commit,mypy
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10-dev: py310
[testenv]
passenv = *
usedevelop = True
deps =
.[test]
-e.[test]
py{36,37,38,39,310}: pytest-asyncio
setenv =
PYTHONPATH = .:{envdir}
commands =
py{36,37,38}: pytest --cov=graphene graphene examples {posargs}
py{36,37,38,39,310}: py.test --cov=graphene graphene examples {posargs}
[testenv:pre-commit]
basepython=python3.7
deps =
pre-commit>=2,<3
pre-commit>0.12.0
setenv =
LC_CTYPE=en_US.UTF-8
commands =
pre-commit {posargs:run --all-files}
[testenv:mypy]
basepython=python3.7
deps =
mypy>=0.761,<1
mypy
types-six
commands =
mypy graphene
[testenv:flake8]
basepython=python3.7
deps =
flake8>=3.7,<4
deps = flake8
commands =
pip install --pre -e .
pip install -e .
flake8 graphene
[pytest]