graphene/tox.ini

43 lines
681 B
INI
Raw Normal View History

2015-09-24 12:11:50 +03:00
[tox]
2021-07-19 09:10:33 +03:00
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
2015-09-24 12:11:50 +03:00
[testenv]
2021-07-19 09:10:33 +03:00
passenv = *
usedevelop = True
2018-08-31 21:01:03 +03:00
deps =
2021-07-19 09:10:33 +03:00
-e.[test]
py{36,37,38,39,310}: pytest-asyncio
2015-10-11 03:50:41 +03:00
setenv =
2018-08-31 21:01:03 +03:00
PYTHONPATH = .:{envdir}
commands =
2021-07-19 09:10:33 +03:00
py{36,37,38,39,310}: py.test --cov=graphene graphene examples {posargs}
[testenv:pre-commit]
deps =
2021-07-19 09:10:33 +03:00
pre-commit>0.12.0
setenv =
LC_CTYPE=en_US.UTF-8
commands =
pre-commit {posargs:run --all-files}
[testenv:mypy]
deps =
2021-07-19 09:10:33 +03:00
mypy
types-six
commands =
mypy graphene
[testenv:flake8]
2021-07-19 09:10:33 +03:00
deps = flake8
commands =
2021-07-19 09:10:33 +03:00
pip install -e .
flake8 graphene