-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
116 lines (105 loc) · 2.09 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[tox]
envlist = basic,swaggerpetstore,httpbin,flake8
[testenv]
deps =
urllib3 < 2
pytest
pytest-cov
requests < 2.29.0
httpx
[testenv:yapf]
basepython = python3
skip_install = true
deps =
yapf
commands =
yapf -dr decorest tests examples
[testenv:rstcheck]
basepython = python3
skip_install = true
deps =
rstcheck
pygments
commands =
rstcheck README.rst
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-docstrings>=0.2.7
flake8-import-order>=0.9
pep8-naming
flake8-colors
commands =
flake8 decorest examples setup.py
[testenv:mypy]
basepython = python3
skip_install = true
deps =
mypy
commands =
python -m mypy --strict --disallow-untyped-defs --show-error-context --install-types \
decorest \
examples/httpbin/httpbin_client_with_typing.py \
examples/swagger_petstore/petstore_client_with_typing.py
[testenv:basic]
deps =
pytest
pytest-cov
requests
requests-toolbelt
typing-extensions
httpx
httpx_auth
respx
commands = py.test -v --cov=decorest tests/decorators_tests.py tests/api_inheritance_tests.py -W error []
[testenv:swaggerpetstore]
docker =
petstore
deps =
pytest
pytest-cov
requests
requests-toolbelt
typing-extensions
httpx
brotli
commands = py.test -v --cov=decorest --cov-append tests/petstore_test.py -W error []
[testenv:httpbin]
setenv =
HTTPX_LOG_LEVEL=trace
docker =
httpbin
deps =
pytest
pytest-cov
requests
requests-toolbelt
typing-extensions
httpx
Pillow
brotli
commands = py.test -v --cov=decorest --cov-append tests/httpbin_test.py -W error []
[testenv:asynchttpbin]
env =
PYTHONASYNCIODEBUG=0
docker =
httpbin
deps =
pytest
pytest-cov
pytest-asyncio==0.16.0
requests
requests-toolbelt
typing-extensions
httpx
Pillow
brotli
commands = py.test -v --cov=decorest --cov-append tests/httpbin_async_test.py -W error []
[docker:httpbin]
image = kennethreitz/httpbin
[docker:petstore]
image = swaggerapi/petstore:1.0.0
ports =
8080:8080/tcp