Skip to content

Commit 0caa6c6

Browse files
tbitcsoz-agent
andcommitted
fix: ruff format compliance (broker.py, cli.py, esdb/bridge.py)
Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent a50e779 commit 0caa6c6

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

src/specsmith/agent/broker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def _safe_file_read(path: Path, encoding: str = "utf-8") -> str:
5757
raise ValueError(f"Path traversal rejected: {raw!r}")
5858
return path.read_text(encoding=encoding)
5959

60+
6061
# ---------------------------------------------------------------------------
6162
# Intent classification
6263
# ---------------------------------------------------------------------------

src/specsmith/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8313,6 +8313,8 @@ def skills_delete_cmd(skill_id: str, project_dir: str, auto_yes: bool) -> None:
83138313
else:
83148314
console.print(f"[red]Skill not found:[/red] {skill_id}")
83158315
raise SystemExit(1)
8316+
8317+
83168318
main.add_command(skills_group)
83178319

83188320

src/specsmith/esdb/bridge.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ class EsdbRecord:
2929

3030
def to_dict(self) -> dict[str, Any]:
3131
"""Return the original source data dict (used for export/backup)."""
32-
return self.data if self.data else {
33-
"id": self.id,
34-
"kind": self.kind,
35-
"status": self.status,
36-
"confidence": self.confidence,
37-
"label": self.label,
38-
}
32+
return (
33+
self.data
34+
if self.data
35+
else {
36+
"id": self.id,
37+
"kind": self.kind,
38+
"status": self.status,
39+
"confidence": self.confidence,
40+
"label": self.label,
41+
}
42+
)
3943

4044

4145
@dataclass

0 commit comments

Comments
 (0)