forked from graphql-python/graphql-core-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
32 lines (28 loc) · 785 Bytes
/
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
[tox]
envlist = py{27,35,36,37,py38,py,py3},pre-commit,mypy,docs
[testenv]
install_command = python -m pip install --ignore-installed {opts} {packages}
deps =
.[test]
commands =
py{27,py}: pytest graphql tests {posargs}
py{35,36,38,py3}: pytest graphql tests tests_py35 {posargs}
py{37}: pytest graphql tests tests_py35 {posargs: --cov-report=term-missing --cov=graphql}
[testenv:pre-commit]
basepython=python3.8
deps =
pre-commit==1.21.0
setenv =
LC_CTYPE=en_US.UTF-8
commands =
pre-commit {posargs:run --all-files}
[testenv:mypy]
basepython=python3.8
deps =
mypy==0.770
commands =
mypy graphql --ignore-missing-imports
[testenv:docs]
changedir = docs
deps = sphinx
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html