Files
supervisor/tox.ini
Stefan AgnerandGitHub 75c39ed0d4 Default pytest --timeout=10 in pyproject.toml (#6797)
CI and tox both passed ``--timeout=10`` explicitly, but a plain local
``pytest`` had no timeout — a hung asyncio task or stuck D-Bus signal
handler could stall a developer's run indefinitely while passing CI.

Move the timeout into ``[tool.pytest.ini_options]`` so it applies
everywhere (pytest auto-discovers ``pyproject.toml`` in the repo
root) and drop the now-redundant ``--timeout=10`` flags from
``ci.yaml`` and ``tox.ini``. The full suite already fits comfortably
under 10s per test, and ``@pytest.mark.timeout(N)`` remains
available for per-test overrides if a specific test ever needs more
headroom.
2026-05-04 14:48:36 +02:00

25 lines
430 B
INI

[tox]
envlist = lint, tests, ruff
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_tests.txt
[testenv:lint]
basepython = python3
ignore_errors = True
commands =
ruff check --fix supervisor tests
pylint --rcfile pylintrc supervisor tests
[testenv:tests]
basepython = python3
commands =
pytest tests
[testenv:ruff]
basepython = python3
commands =
ruff format supervisor tests