mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-19 10:47:15 +00:00

* Migrate to Ruff for lint and format * Fix pylint issues * DBus property sets into normal awaitable methods * Fix tests relying on separate tasks in connect * Fixes from feedback
25 lines
443 B
INI
25 lines
443 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 --timeout=10 tests
|
|
|
|
[testenv:ruff]
|
|
basepython = python3
|
|
commands =
|
|
ruff format supervisor tests
|