forked from graphql-python/graphql-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
53 lines (47 loc) · 1.07 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
[tox]
envlist = py{36,37,38,39}, black, flake8, mypy, docs, manifest
isolated_build = true
[testenv:black]
basepython = python3.8
deps = black==21.6b0
commands =
black src tests setup.py --check
[testenv:flake8]
basepython = python3.8
deps = flake8>=3.9,<4
commands =
flake8 src tests setup.py
[testenv:mypy]
basepython = python3.8
deps =
mypy==0.812
pytest>=6.2,<7
commands =
mypy src tests
[testenv:docs]
basepython = python3.8
deps =
sphinx>=3.5,<4
sphinx_rtd_theme>=0.5,<1
commands =
sphinx-build -b html -nEW docs docs/_build/html
[testenv:manifest]
basepython = python3.8
deps = check-manifest>=0.46,<1
commands =
check-manifest -v
[testenv]
whitelist_externals = poetry
setenv =
PYTHONPATH = {toxinidir}
deps =
pytest>=6.2,<7
pytest-asyncio>=0.15,<1
pytest-benchmark>=3.4,<4
pytest-cov>=2.11,<3
pytest-describe>=1,<2
pytest-timeout>=1.4,<2
commands =
pip uninstall -qqy graphql-core
poetry install
poetry run pytest tests {posargs: --cov-report=term-missing --cov=graphql --cov=tests --cov-fail-under=100}