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]
|
|
|
|
|
|
|
|
|
|
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
|