forked from graphql-python/graphql-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (49 loc) · 1.22 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[tox]
envlist = py3{7,8,9,10,11,12}, pypy3{9,10}, ruff, mypy, docs
isolated_build = true
[gh-actions]
python =
3: py311
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy3: pypy9
pypy3.9: pypy39
pypy3.10: pypy310
[testenv:ruff]
basepython = python3.12
deps = ruff>=0.2.1,<0.3
commands =
ruff check src tests
ruff format --check src tests
[testenv:mypy]
basepython = python3.12
deps =
mypy>=1.8.0,<1.9
pytest>=8.0,<9
commands =
mypy src tests
[testenv:docs]
basepython = python3.12
deps =
sphinx>=7,<8
sphinx_rtd_theme>=2.0,<3
commands =
sphinx-build -b html -nEW docs docs/_build/html
[testenv]
deps =
pytest>=7.4,<9
pytest-asyncio>=0.21.1,<1
pytest-benchmark>=4,<5
pytest-cov>=4.1,<5
pytest-describe>=2.2,<3
pytest-timeout>=2.2,<3
py37,py38,py39,pypy39: typing-extensions>=4.7.1,<5
commands =
# to also run the time-consuming tests: tox -e py311 -- --run-slow
# to run the benchmarks: tox -e py311 -- -k benchmarks --benchmark-enable
py37,py38,py39,py310,py311,pypy39,pypy310: pytest tests {posargs}
py312: pytest tests {posargs: --cov-report=term-missing --cov=graphql --cov=tests --cov-fail-under=100}