-
-
Notifications
You must be signed in to change notification settings - Fork 137
/
tox.ini
55 lines (50 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
55
[tox]
envlist = py3{7,8,9,10,11,12,13}, 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
3.13: py313
pypy3: pypy39
pypy3.9: pypy39
pypy3.10: pypy310
[testenv:ruff]
basepython = python3.12
deps = ruff>=0.8,<0.9
commands =
ruff check src tests
ruff format --check src tests
[testenv:mypy]
basepython = python3.12
deps =
mypy>=1.12,<2
pytest>=8.3,<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,<6
pytest-describe>=2.2,<3
pytest-timeout>=2.3,<3
py3{7,8,9}, 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
py3{7,8,9,10,11,13}, pypy3{9,10}: pytest tests {posargs}
py312: pytest tests {posargs: --cov-report=term-missing --cov=graphql --cov=tests --cov-fail-under=100}