2015-09-24 12:11:50 +03:00
|
|
|
[tox]
|
2021-07-16 18:56:15 +03:00
|
|
|
envlist = py{27,36,37,38,39},flake8,pre-commit,mypy
|
|
|
|
|
|
|
|
[gh-actions]
|
|
|
|
python =
|
|
|
|
2.7: py27
|
|
|
|
3.6: py36
|
|
|
|
3.7: py37
|
|
|
|
3.8: py38
|
|
|
|
3.9: py39
|
2015-09-24 12:11:50 +03:00
|
|
|
|
|
|
|
[testenv]
|
2021-07-16 18:56:15 +03:00
|
|
|
passenv = *
|
|
|
|
usedevelop = True
|
2018-08-31 21:01:03 +03:00
|
|
|
deps =
|
2021-07-16 18:56:15 +03:00
|
|
|
-e.[test]
|
|
|
|
py{36,37,38,39}: pytest-asyncio
|
2015-10-11 03:50:41 +03:00
|
|
|
setenv =
|
2018-08-31 21:01:03 +03:00
|
|
|
PYTHONPATH = .:{envdir}
|
2018-08-31 20:41:20 +03:00
|
|
|
commands =
|
2021-07-16 18:56:15 +03:00
|
|
|
py{27}: py.test --cov=graphene graphene examples {posargs}
|
|
|
|
py{36,37,38,39}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs}
|
2015-10-31 23:46:43 +03:00
|
|
|
|
2018-05-22 20:56:58 +03:00
|
|
|
[testenv:pre-commit]
|
|
|
|
deps =
|
|
|
|
pre-commit>0.12.0
|
|
|
|
setenv =
|
|
|
|
LC_CTYPE=en_US.UTF-8
|
|
|
|
commands =
|
|
|
|
pre-commit {posargs:run --all-files}
|
|
|
|
|
2018-06-11 19:12:27 +03:00
|
|
|
[testenv:mypy]
|
|
|
|
deps =
|
|
|
|
mypy
|
2021-07-16 18:56:15 +03:00
|
|
|
types-six
|
2018-06-11 19:12:27 +03:00
|
|
|
commands =
|
|
|
|
mypy graphene
|
|
|
|
|
2015-10-31 23:46:43 +03:00
|
|
|
[testenv:flake8]
|
|
|
|
deps = flake8
|
|
|
|
commands =
|
|
|
|
pip install -e .
|
|
|
|
flake8 graphene
|