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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user