mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-08-17 02:13:43 +01:00
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.
25 lines
430 B
INI
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
|