mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 03:23:55 +03:00
6b8cd2dc78
Co-authored-by: Erik Wrede <erikwrede@users.noreply.github.com>
30 lines
539 B
INI
30 lines
539 B
INI
[tox]
|
|
envlist = py3{7,8,9,10,11}, mypy, pre-commit
|
|
skipsdist = true
|
|
|
|
[testenv]
|
|
deps =
|
|
.[test]
|
|
setenv =
|
|
PYTHONPATH = .:{envdir}
|
|
commands =
|
|
py{37,38,39,310,311}: pytest --cov=graphene graphene --cov-report=term --cov-report=xml examples {posargs}
|
|
|
|
[testenv:pre-commit]
|
|
basepython = python3.10
|
|
deps =
|
|
pre-commit>=2.16,<3
|
|
setenv =
|
|
LC_CTYPE=en_US.UTF-8
|
|
commands =
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[testenv:mypy]
|
|
basepython = python3.10
|
|
deps =
|
|
mypy>=0.950,<1
|
|
commands =
|
|
mypy graphene
|
|
|
|
[pytest]
|