Skip to content

Commit d0e9993

Browse files
committed
style: reformat code with black
1 parent a355d9d commit d0e9993

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

src/trueentropy/config.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ def __post_init__(self) -> None:
8282
# Ensure at least one source is enabled
8383
if not any(self.enabled_sources):
8484
raise ValueError(
85-
"At least one entropy source must be enabled. "
86-
"Cannot disable all harvesters."
85+
"At least one entropy source must be enabled. " "Cannot disable all harvesters."
8786
)
8887

8988
# -------------------------------------------------------------------------
@@ -97,12 +96,14 @@ def offline_mode(self) -> bool:
9796
9897
Returns True if all network-dependent sources are disabled.
9998
"""
100-
return not any([
101-
self.enable_network,
102-
self.enable_external,
103-
self.enable_weather,
104-
self.enable_radioactive,
105-
])
99+
return not any(
100+
[
101+
self.enable_network,
102+
self.enable_external,
103+
self.enable_weather,
104+
self.enable_radioactive,
105+
]
106+
)
106107

107108
@property
108109
def enabled_sources(self) -> set[str]:
@@ -176,6 +177,7 @@ def copy(self, **changes) -> TrueEntropyConfig:
176177
New TrueEntropyConfig instance
177178
"""
178179
from dataclasses import asdict
180+
179181
current = asdict(self)
180182
current.update(changes)
181183
return TrueEntropyConfig(**current)

src/trueentropy/health.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,3 @@ def print_health_report(pool: EntropyPool) -> None:
297297
print(f"║ {emoji} {health['recommendation'][:40]:40}║")
298298
print("╚══════════════════════════════════════════╝")
299299
print()
300-

0 commit comments

Comments
 (0)