forked from graphql-python/graphql-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
56 lines (49 loc) · 1.08 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
[tox]
envlist =
black,flake8,import-order,mypy,manifest,
py{36,37,38,39}
; requires = tox-conda
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[testenv]
conda_channels = conda-forge
passenv = *
setenv =
PYTHONPATH = {toxinidir}
install_command = python -m pip install --ignore-installed {opts} {packages}
deps = -e.[test]
whitelist_externals =
python
commands =
pip install -U setuptools
py{36,37,39}: pytest tests {posargs}
py{38}: pytest tests --cov-report=term-missing --cov=graphql_server {posargs}
[testenv:black]
basepython = python3.8
deps = -e.[dev]
commands =
black --check graphql_server tests
[testenv:flake8]
basepython = python3.8
deps = -e.[dev]
commands =
flake8 setup.py graphql_server tests
[testenv:import-order]
basepython = python3.8
deps = -e.[dev]
commands =
isort -rc graphql_server/ tests/
[testenv:mypy]
basepython = python3.8
deps = -e.[dev]
commands =
mypy graphql_server tests --ignore-missing-imports
[testenv:manifest]
basepython = python3.8
deps = -e.[dev]
commands =
check-manifest -v