-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
85 lines (79 loc) · 1.5 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[tox]
isolated_build = True
envlist =
lint
{py37,py38}
{py37,py38}-{aiohttp,requests}
coverage
skip_missing_interpreters = true
[tox:.package]
basepython = python3
[testenv]
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
PYTHONPATH = {toxinidir}/tests
PYTHONUNBUFFERED = yes
MARKER = not aiohttp and not requests
{py,py37,py38}-aiohttp: MARKER = aiohttp
{py,py37,py38}-requests: MARKER = requests
deps =
pytest
pytest-asyncio
pytest-cov
{py,py37,py38}-{aiohttp,requests}: pytest-httpbin
extras =
{py,py37,py38}-aiohttp: aiohttp
{py,py37,py38}-requests: requests
commands =
pytest \
-vvv \
tests \
-m "{env:MARKER}" \
{posargs:.}
[testenv:dev]
envdir = {toxinidir}/.venv
isolated_build = False
deps =
aiohttp
mypy
pre-commit
pylint
pytest
pytest-asyncio
pytest-cov
pytest-httpbin
requests
sphinx
typing-extensions
commands =
[testenv:lint]
deps =
aiohttp
mypy
pre-commit
pylint
pytest
pytest-httpbin
requests
typing-extensions
types-certifi
types-requests
commands =
pre-commit run --all-files {posargs}
[testenv:coverage]
skip_install = True
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
deps =
coverage
commands =
coverage combine
coverage report --fail-under=100
coverage xml -o {toxinidir}/test-reports/coverage.xml
depends =
{py37,py38}
{py37,py38}-{aiohttp,requests}
[testenv:docs]
deps =
sphinx
commands =