Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adapters/linux/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ def clean_tmp(paths: list[str] | None = None, older_than_days: int = 7, dry_run:
"ok": len(errors) == 0,
"message": f"{'[dry-run] Would remove' if dry_run else 'Removed'} {len(removed)} items",
"context": {"removed": removed, "errors": errors, "dry_run": dry_run},
}
}
2 changes: 1 addition & 1 deletion adapters/linux/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ def restart_interface(interface: str = "auto") -> dict:
"ok": False,
"message": f"Failed to restart {resolved}: {e}",
"context": {"interface": resolved},
}
}
2 changes: 1 addition & 1 deletion adapters/linux/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ def restart(name: str) -> dict:
"ok": False,
"message": f"Timeout restarting service {name}",
"context": {"service": name},
}
}
2 changes: 1 addition & 1 deletion adapters/notify/filelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ def emit(record: StateRecord, log_path: str | Path = DEFAULT_LOG_PATH) -> None:

def emit_all(records: list[StateRecord], log_path: str | Path = DEFAULT_LOG_PATH) -> None:
for record in records:
emit(record, log_path)
emit(record, log_path)
2 changes: 1 addition & 1 deletion adapters/notify/stdout.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ def emit_all(records: list[StateRecord]) -> None:
print("[swiftbox] all checks passed — no actions taken", flush=True)
return
for record in records:
emit(record)
emit(record)
2 changes: 1 addition & 1 deletion adapters/repo/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ def fetch_config(

def checksum_of(path: str | Path) -> str:
"""Return sha256 of a local file. Useful for pre-populating expected checksums."""
return _sha256(Path(path).read_bytes())
return _sha256(Path(path).read_bytes())
2 changes: 1 addition & 1 deletion adapters/repo/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ def entries_from_manifest(manifest: dict) -> list[SyncEntry]:
expected_checksum=item.get("checksum"),
required=item.get("required", True),
))
return result
return result
2 changes: 1 addition & 1 deletion core/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ def run_all_checks(
def run_checks_from_config(config_path: str | Path, host: str) -> list[IssueReport]:
"""Convenience: load config and run all checks in one call."""
checks = load_healthcheck_config(config_path)
return run_all_checks(checks, host)
return run_all_checks(checks, host)
2 changes: 1 addition & 1 deletion core/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,4 @@ def run_workflow(
)
_write_state(record, state_dir)
_notify([record], notify_targets, host_config.log_path)
return record
return record
2 changes: 1 addition & 1 deletion core/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,4 @@ def plan(
workflow_id, host_config.name, effective_dry_run, approved,
)

return requests
return requests
2 changes: 1 addition & 1 deletion core/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ class StateRecord:
issue: Optional[IssueReport]
action: Optional[ActionResult]
verification: Optional[VerificationResult]
timestamp: str
timestamp: str
2 changes: 1 addition & 1 deletion core/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ def verify_workflow(
def all_passed(results: list[VerificationResult]) -> bool:
if not results:
return False
return all(r.passed for r in results)
return all(r.passed for r in results)
Loading