Skip to content

Commit 04920cb

Browse files
committed
fix: resolve CI failures for formatting and type-checking
Run ruff format on entity_io.py and add entity_io to mypy ignore_missing_imports (runtime sys.path import).
1 parent 06855b4 commit 04920cb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

plugins/kaizen/lib/entity_io.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# Logging
1717
# ---------------------------------------------------------------------------
1818

19+
1920
def _get_log_dir():
2021
"""Get user-scoped log directory with restrictive permissions."""
2122
try:
@@ -51,6 +52,7 @@ def log(component, message):
5152
# Directory discovery
5253
# ---------------------------------------------------------------------------
5354

55+
5456
def find_entities_dir():
5557
"""Locate the entities directory.
5658
@@ -98,6 +100,7 @@ def get_default_entities_dir():
98100
# Slugify / filename helpers
99101
# ---------------------------------------------------------------------------
100102

103+
101104
def slugify(text, max_length=60):
102105
"""Convert *text* to a filesystem-safe slug.
103106
@@ -207,8 +210,8 @@ def markdown_to_entity(path):
207210
body = body.strip()
208211
m = re.search(r"^## Rationale", body, re.MULTILINE)
209212
if m:
210-
content = body[:m.start()].strip()
211-
rationale = body[m.end():].strip()
213+
content = body[: m.start()].strip()
214+
rationale = body[m.end() :].strip()
212215
if rationale:
213216
entity["rationale"] = rationale
214217
else:
@@ -224,6 +227,7 @@ def markdown_to_entity(path):
224227
# Bulk load / write
225228
# ---------------------------------------------------------------------------
226229

230+
227231
def load_all_entities(entities_dir):
228232
"""Glob ``**/*.md`` under *entities_dir* and parse each file.
229233

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,6 @@ module = [
145145
"agents.*",
146146
"pgvector.*",
147147
"psycopg.*",
148+
"entity_io.*",
148149
]
149150
ignore_missing_imports = true

0 commit comments

Comments
 (0)