-
-
Notifications
You must be signed in to change notification settings - Fork 537
/
Copy pathtox.ini
51 lines (46 loc) · 988 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
41
42
43
44
45
46
47
48
49
50
51
[tox]
env_list =
py39
py310
py311
py312
py313
coverage
ruff
mypy
[testenv]
commands =
python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m unittest {posargs}
pass_env =
WEBSOCKETS_*
deps =
py311,py312,py313,coverage,maxi_cov: mitmproxy
py311,py312,py313,coverage,maxi_cov: python-socks[asyncio]
werkzeug
[testenv:coverage]
commands =
python -m coverage run --source {envsitepackagesdir}/websockets,tests -m unittest {posargs}
python -m coverage report --show-missing --fail-under=100
deps =
coverage
{[testenv]deps}
[testenv:maxi_cov]
commands =
python tests/maxi_cov.py {envsitepackagesdir}
python -m coverage report --show-missing --fail-under=100
deps =
coverage
{[testenv]deps}
[testenv:ruff]
commands =
ruff format --check src tests
ruff check src tests
deps =
ruff
[testenv:mypy]
commands =
mypy --strict src
deps =
mypy
python-socks
werkzeug