44 lines
792 B
INI
44 lines
792 B
INI
[tox]
|
|
envlist = py, check_codestyle, check_types
|
|
|
|
# required for PEP 517 (pyproject.toml-style) builds
|
|
isolated_build = true
|
|
|
|
[testenv:py]
|
|
|
|
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
|
|
|
|
extras = dev
|
|
|
|
commands =
|
|
coverage run -m twisted.trial tests
|
|
coverage xml
|
|
|
|
[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
|