2015-09-24 12:11:50 +03:00
|
|
|
[tox]
|
2018-08-31 20:41:20 +03:00
|
|
|
envlist = flake8,py27,py34,py35,py36,py37,pre-commit,pypy,mypy
|
2015-10-31 23:46:43 +03:00
|
|
|
skipsdist = true
|
2015-09-24 12:11:50 +03:00
|
|
|
|
|
|
|
[testenv]
|
2018-08-31 21:01:03 +03:00
|
|
|
deps =
|
2018-08-31 20:41:20 +03:00
|
|
|
.[test]
|
|
|
|
py{35,36,37}: 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 =
|
2019-05-07 22:16:22 +03:00
|
|
|
py{27,py}: py.test --cov=graphene graphene examples {posargs}
|
2019-06-01 00:31:17 +03:00
|
|
|
py{35}: py.test --cov=graphene graphene examples tests_asyncio {posargs}
|
|
|
|
py{36,37}: 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]
|
2019-06-19 20:25:21 +03:00
|
|
|
basepython=python3.7
|
2018-05-22 20:56:58 +03:00
|
|
|
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]
|
2019-06-19 20:25:21 +03:00
|
|
|
basepython=python3.7
|
2018-06-11 19:12:27 +03:00
|
|
|
deps =
|
|
|
|
mypy
|
|
|
|
commands =
|
|
|
|
mypy graphene
|
|
|
|
|
2015-10-31 23:46:43 +03:00
|
|
|
[testenv:flake8]
|
|
|
|
deps = flake8
|
|
|
|
commands =
|
|
|
|
pip install -e .
|
|
|
|
flake8 graphene
|
2015-09-30 09:40:40 +03:00
|
|
|
|
|
|
|
[pytest]
|