chore: apply auto formatted files

This commit is contained in:
rookiestar28
2026-04-16 20:18:25 +08:00
parent fd3a11c25f
commit 450c470716
2 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -11,7 +11,9 @@ from typing import Any, Callable, Dict, List, Optional, Protocol
class AuditSink(Protocol):
def append_entry(self, entry: Dict[str, Any], *, last_hash: Optional[str]) -> str: ...
def append_entry(
self, entry: Dict[str, Any], *, last_hash: Optional[str]
) -> str: ...
@dataclass
+6 -2
View File
@@ -13,7 +13,9 @@ import services.audit as audit_module
def _load_verify_script_module():
root = Path(__file__).resolve().parents[1]
module_path = root / "scripts" / "verify_audit_chain.py"
spec = importlib.util.spec_from_file_location("verify_audit_chain_script", module_path)
spec = importlib.util.spec_from_file_location(
"verify_audit_chain_script", module_path
)
if spec is None or spec.loader is None:
raise RuntimeError("Failed to load verify_audit_chain.py")
module = importlib.util.module_from_spec(spec)
@@ -117,7 +119,9 @@ class TestR159AuditPipeline(unittest.TestCase):
"services.audit.LocalFileAuditSink.append_entry",
side_effect=OSError("disk full"),
):
with self.assertLogs("ComfyUI-OpenClaw.services.audit", level="ERROR") as logs:
with self.assertLogs(
"ComfyUI-OpenClaw.services.audit", level="ERROR"
) as logs:
audit_module.emit_audit_event(
action="config.update",
target="settings.json",