-
Notifications
You must be signed in to change notification settings - Fork 182
/
tox.ini
68 lines (60 loc) · 1.48 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
56
57
58
59
60
61
62
63
64
65
66
67
68
[tox]
envlist =
black,flake8,import-order,mypy,manifest,
py{38,39,310,311,312,py3}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-3: pypy3
[testenv]
conda_channels = conda-forge
passenv = *
setenv =
PYTHONPATH = {toxinidir}
MULTIDICT_NO_EXTENSIONS = 1 ; Related to https://github.com/aio-libs/multidict
YARL_NO_EXTENSIONS = 1 ; Related to https://github.com/aio-libs/yarl
GQL_TESTS_TIMEOUT_FACTOR = 10
install_command = python -m pip install --ignore-installed {opts} {packages}
whitelist_externals =
python
deps = -e.[test]
; Prevent installing issues: https://github.com/ContinuumIO/anaconda-issues/issues/542
commands =
pip install -U setuptools
; run "tox -- tests -s" to show output for debugging
py{39,310,311,312,py3}: pytest {posargs:tests}
py{38}: pytest {posargs:tests --cov-report=term-missing --cov=gql}
[testenv:black]
basepython = python
deps = -e.[dev]
commands =
black --check gql tests
[testenv:flake8]
basepython = python
deps = -e.[dev]
commands =
flake8 gql tests
[testenv:import-order]
basepython = python
deps = -e.[dev]
commands =
isort --recursive --check-only --diff gql tests
[testenv:mypy]
basepython = python
deps = -e.[dev]
commands =
mypy gql tests
[testenv:docs]
basepython = python
deps = -e.[dev]
commands =
sphinx-build -b html -nEW docs docs/_build/html
[testenv:manifest]
basepython = python
deps = -e.[dev]
commands =
check-manifest -v