mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 01:26:49 +03:00
Update tox
This commit is contained in:
parent
9d8a4ec83c
commit
6d91caadac
33
tox.ini
33
tox.ini
|
@ -1,37 +1,42 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = flake8,py36,py37,py38,pre-commit,mypy
|
envlist = py{36,37,38,39,310},flake8,pre-commit,mypy
|
||||||
skipsdist = true
|
|
||||||
|
[gh-actions]
|
||||||
|
python =
|
||||||
|
3.6: py36
|
||||||
|
3.7: py37
|
||||||
|
3.8: py38
|
||||||
|
3.9: py39
|
||||||
|
3.10-dev: py310
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
passenv = *
|
||||||
|
usedevelop = True
|
||||||
deps =
|
deps =
|
||||||
.[test]
|
-e.[test]
|
||||||
|
py{36,37,38,39,310}: pytest-asyncio
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONPATH = .:{envdir}
|
PYTHONPATH = .:{envdir}
|
||||||
commands =
|
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]
|
[testenv:pre-commit]
|
||||||
basepython=python3.7
|
|
||||||
deps =
|
deps =
|
||||||
pre-commit>=2,<3
|
pre-commit>0.12.0
|
||||||
setenv =
|
setenv =
|
||||||
LC_CTYPE=en_US.UTF-8
|
LC_CTYPE=en_US.UTF-8
|
||||||
commands =
|
commands =
|
||||||
pre-commit {posargs:run --all-files}
|
pre-commit {posargs:run --all-files}
|
||||||
|
|
||||||
[testenv:mypy]
|
[testenv:mypy]
|
||||||
basepython=python3.7
|
|
||||||
deps =
|
deps =
|
||||||
mypy>=0.761,<1
|
mypy
|
||||||
|
types-six
|
||||||
commands =
|
commands =
|
||||||
mypy graphene
|
mypy graphene
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython=python3.7
|
deps = flake8
|
||||||
deps =
|
|
||||||
flake8>=3.7,<4
|
|
||||||
commands =
|
commands =
|
||||||
pip install --pre -e .
|
pip install -e .
|
||||||
flake8 graphene
|
flake8 graphene
|
||||||
|
|
||||||
[pytest]
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user