2025-02-04 09:21:06 -05:00
|
|
|
[tox]
|
|
|
|
|
envlist = py, check_codestyle, check_types
|
|
|
|
|
|
|
|
|
|
# required for PEP 517 (pyproject.toml-style) builds
|
|
|
|
|
isolated_build = true
|
|
|
|
|
|
|
|
|
|
[testenv:py]
|
|
|
|
|
|
2026-01-15 11:25:02 +00:00
|
|
|
deps =
|
|
|
|
|
# Temp: downgrade prometheus-client until Synapse is compatible with 0.24.0+
|
|
|
|
|
# See https://github.com/element-hq/synapse/issues/19375
|
|
|
|
|
prometheus-client==0.23.1
|
|
|
|
|
|
2025-02-04 09:21:06 -05:00
|
|
|
extras = dev
|
|
|
|
|
|
|
|
|
|
commands =
|
2025-02-12 16:01:24 -05:00
|
|
|
coverage run -m twisted.trial tests
|
|
|
|
|
coverage xml
|
2025-02-04 09:21:06 -05:00
|
|
|
|
|
|
|
|
[testenv:check_codestyle]
|
|
|
|
|
|
|
|
|
|
extras = dev
|
|
|
|
|
|
|
|
|
|
commands =
|
|
|
|
|
flake8 synapse_guest_module tests
|
|
|
|
|
black --check --diff synapse_guest_module tests
|
|
|
|
|
isort --check-only --diff synapse_guest_module tests
|
|
|
|
|
|
|
|
|
|
[testenv:fix_codestyle]
|
|
|
|
|
|
|
|
|
|
extras = dev
|
|
|
|
|
|
|
|
|
|
commands =
|
|
|
|
|
black synapse_guest_module tests
|
|
|
|
|
isort synapse_guest_module tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[testenv:check_types]
|
|
|
|
|
|
|
|
|
|
extras = dev
|
|
|
|
|
|
|
|
|
|
commands =
|
|
|
|
|
mypy synapse_guest_module tests
|