1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Bump pre-commit ruff to 0.5.7 and reformat (#5242)

It seems that the codebase is not formatted with the latest ruff
version. This PR reformats the codebase with ruff 0.5.7.
This commit is contained in:
Stefan Agner
2024-08-13 20:53:56 +02:00
committed by GitHub
parent 21ae2c2e54
commit f6faa18409
304 changed files with 1173 additions and 617 deletions

View File

@@ -12,8 +12,9 @@ async def test_check_system_error(coresys: CoreSys, capture_exception: Mock):
"""Test error while checking system."""
coresys.core.state = CoreState.STARTUP
with patch.object(CheckCoreSecurity, "run_check", side_effect=ValueError), patch(
"shutil.disk_usage", return_value=(42, 42, 2 * (1024.0**3))
with (
patch.object(CheckCoreSecurity, "run_check", side_effect=ValueError),
patch("shutil.disk_usage", return_value=(42, 42, 2 * (1024.0**3))),
):
await coresys.resolution.check.check_system()