Skip to content

Commit 503dc23

Browse files
committed
Run ruff format
1 parent 3ae4744 commit 503dc23

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

supervisor/jobs/decorator.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
JobGroupExecutionLimitExceeded,
1818
)
1919
from ..host.const import HostFeature
20-
from ..resolution.const import MINIMUM_FREE_SPACE_THRESHOLD, ContextType, IssueType, UnsupportedReason
20+
from ..resolution.const import (
21+
MINIMUM_FREE_SPACE_THRESHOLD,
22+
ContextType,
23+
IssueType,
24+
UnsupportedReason,
25+
)
2126
from ..utils.sentry import capture_exception
2227
from . import SupervisorJob
2328
from .const import JobCondition, JobExecutionLimit
@@ -437,7 +442,8 @@ async def check_conditions(
437442
)
438443
if (
439444
JobCondition.ARCHITECTURE_SUPPORTED in used_conditions
440-
and UnsupportedReason.SYSTEM_ARCHITECTURE in coresys.sys_resolution.unsupported
445+
and UnsupportedReason.SYSTEM_ARCHITECTURE
446+
in coresys.sys_resolution.unsupported
441447
):
442448
raise JobConditionException(
443449
f"'{method_name}' blocked from execution, unsupported system architecture"

tests/resolution/evaluation/test_system_architecture.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async def test_evaluation_unsupported_architectures(
2121
coresys.core.state = CoreState.INITIALIZE
2222

2323
with patch.object(
24-
type(coresys.supervisor), "arch", PropertyMock(return_value=arch)
24+
type(coresys.supervisor), "arch", PropertyMock(return_value=arch)
2525
):
2626
await system_architecture()
2727
assert system_architecture.reason in coresys.resolution.unsupported
@@ -37,8 +37,7 @@ async def test_evaluation_supported_architectures(
3737
coresys.core.state = CoreState.INITIALIZE
3838

3939
with patch.object(
40-
type(coresys.supervisor), "arch", PropertyMock(return_value=arch)
40+
type(coresys.supervisor), "arch", PropertyMock(return_value=arch)
4141
):
4242
await system_architecture()
4343
assert system_architecture.reason not in coresys.resolution.unsupported
44-

0 commit comments

Comments
 (0)