forked from graphql-python/gql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (48 loc) · 1.26 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
[tox]
envlist =
black,flake8,import-order,mypy,manifest,
py{27,35,36,37,38,39-dev,py,py3}
; requires = tox-conda
[pytest]
markers = asyncio
[testenv]
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
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
py{27,35,py}: pytest tests {posargs}
py{36,38,39-dev,py3}: pytest tests tests_py36 {posargs}
py{37}: pytest tests tests_py36 {posargs: --cov-report=term-missing --cov=gql}
[testenv:black]
basepython=python3.6
deps = -e.[dev]
commands =
black --check gql tests
[testenv:flake8]
basepython = python3.6
deps = -e.[dev]
commands =
flake8 gql tests
[testenv:import-order]
basepython=python3.6
deps = -e.[dev]
commands =
isort -rc gql/ tests/
[testenv:mypy]
basepython=python3.6
deps = -e.[dev]
commands =
mypy gql tests --ignore-missing-imports
[testenv:manifest]
basepython = python3.6
deps = -e.[dev]
commands =
check-manifest -v