mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-25 02:53:54 +03:00
Update tox
This commit is contained in:
parent
9d8a4ec83c
commit
6d91caadac
33
tox.ini
33
tox.ini
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user