| 1 |
[tox] |
| 2 |
envlist = py3{7,8,9,10,11,12,13,14}, pypy3{9,10,11}, black, flake8, mypy, docs, manifest |
| 3 |
isolated_build = true |
| 4 |
|
| 5 |
[gh-actions] |
| 6 |
python = |
| 7 |
3: py313 |
| 8 |
3.7: py37 |
| 9 |
3.8: py38 |
| 10 |
3.9: py39 |
| 11 |
3.10: py310 |
| 12 |
3.11: py311 |
| 13 |
3.12: py312 |
| 14 |
3.13: py313 |
| 15 |
3.14: py314 |
| 16 |
pypy3: pypy39 |
| 17 |
pypy3.9: pypy39 |
| 18 |
pypy3.10: pypy310 |
| 19 |
pypy3.11: pypy311 |
| 20 |
|
| 21 |
[testenv:black] |
| 22 |
basepython = python3.14 |
| 23 |
deps = black==26.5.1 |
| 24 |
commands = |
| 25 |
black src tests setup.py -t py37 --check |
| 26 |
|
| 27 |
[testenv:flake8] |
| 28 |
basepython = python3.14 |
| 29 |
deps = flake8>=7.3,<8 |
| 30 |
commands = |
| 31 |
flake8 src tests setup.py |
| 32 |
|
| 33 |
[testenv:mypy] |
| 34 |
basepython = python3.14 |
| 35 |
deps = |
| 36 |
mypy>=2.3,<3 |
| 37 |
pytest>=8.4,<10 |
| 38 |
commands = |
| 39 |
mypy src tests |
| 40 |
|
| 41 |
[testenv:docs] |
| 42 |
basepython = python3.14 |
| 43 |
deps = |
| 44 |
sphinx>=9.1,<10 |
| 45 |
sphinx_rtd_theme>=3.1,<4 |
| 46 |
commands = |
| 47 |
sphinx-build -b html -nEW docs docs/_build/html |
| 48 |
|
| 49 |
[testenv:manifest] |
| 50 |
basepython = python3.14 |
| 51 |
deps = check-manifest>=0.51,<1 |
| 52 |
commands = |
| 53 |
check-manifest -v |
| 54 |
|
| 55 |
[testenv] |
| 56 |
deps = |
| 57 |
pytest>=7.4,<10 |
| 58 |
pytest-asyncio>=0.21,<2 |
| 59 |
pytest-benchmark>=4.0,<6 |
| 60 |
pytest-cov>=4.1,<8 |
| 61 |
pytest-describe>=2,<4 |
| 62 |
pytest-timeout>=2.4,<3 |
| 63 |
py3{7,8,9},pypy39: typing-extensions>=4.1,<5 |
| 64 |
commands = |
| 65 |
# to also run the time-consuming tests: tox -e py314 -- --run-slow |
| 66 |
# to run the benchmarks: tox -e py314 -- -k benchmarks --benchmark-enable |
| 67 |
py3{7,8,9,10,11,13},pypy3{9,10,11}: pytest tests {posargs} |
| 68 |
py314: pytest tests {posargs: --cov-report=term-missing --cov=graphql --cov=tests --cov-fail-under=100} |