| 1 |
[tox] |
| 2 |
env_list = |
| 3 |
py311 |
| 4 |
py312 |
| 5 |
py313 |
| 6 |
py314 |
| 7 |
py315 |
| 8 |
coverage |
| 9 |
maxi_cov |
| 10 |
ruff |
| 11 |
mypy |
| 12 |
|
| 13 |
[testenv] |
| 14 |
commands = |
| 15 |
python -W error::DeprecationWarning -W error::PendingDeprecationWarning -X context_aware_warnings=0 -m unittest {posargs} |
| 16 |
pass_env = |
| 17 |
WEBSOCKETS_* |
| 18 |
deps = |
| 19 |
py311,py312,py313,py314,py315,coverage,maxi_cov: mitmproxy |
| 20 |
py311,py312,py313,py314,py315,coverage,maxi_cov: python-socks[asyncio] |
| 21 |
trio |
| 22 |
werkzeug |
| 23 |
|
| 24 |
[testenv:coverage] |
| 25 |
commands = |
| 26 |
python -X context_aware_warnings=0 -m coverage run --source {envsitepackagesdir}/websockets,tests -m unittest {posargs} |
| 27 |
python -m coverage report --show-missing --fail-under=100 |
| 28 |
deps = |
| 29 |
coverage |
| 30 |
{[testenv]deps} |
| 31 |
|
| 32 |
[testenv:maxi_cov] |
| 33 |
commands = |
| 34 |
python tests/maxi_cov.py {envsitepackagesdir} |
| 35 |
python -m coverage report --show-missing --fail-under=100 |
| 36 |
deps = |
| 37 |
coverage |
| 38 |
{[testenv]deps} |
| 39 |
|
| 40 |
[testenv:ruff] |
| 41 |
commands = |
| 42 |
ruff format --check src tests |
| 43 |
ruff check src tests |
| 44 |
deps = |
| 45 |
ruff |
| 46 |
|
| 47 |
[testenv:mypy] |
| 48 |
commands = |
| 49 |
mypy --strict src |
| 50 |
deps = |
| 51 |
mypy |
| 52 |
python-socks |
| 53 |
trio |
| 54 |
werkzeug |