forked from graphql-python/graphql-core-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (35 loc) · 819 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
33
34
35
36
37
38
39
40
[tox]
envlist = py27,py34,py35,py36,py37,pre-commit,pypy,mypy,docs
[testenv]
deps =
pytest>=3.3,<4.0
gevent>=1.1
promise>=2.0
six>=1.10.0
pytest-mock
pytest-benchmark
commands =
py{27,34,py}: py.test graphql tests {posargs}
py{35,36,37}: py.test graphql tests tests_py35 {posargs}
[testenv:pre-commit]
basepython=python3.6
deps =
pre-commit>0.12.0
setenv =
LC_CTYPE=en_US.UTF-8
commands =
pre-commit {posargs:run --all-files}
[testenv:mypy]
basepython=python3.6
deps =
mypy==0.720
commands =
mypy graphql --ignore-missing-imports
[testenv:docs]
changedir = docs
deps = sphinx
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[flake8]
# Must match black formatter default line length
max-line-length = 88
ignore = E203,E501,W503,W504