From b1e13dc700c94100021acc9cebaf6cebc3c99857 Mon Sep 17 00:00:00 2001 From: Mike Macpherson Date: Sun, 23 Aug 2026 17:34:28 -0700 Subject: [PATCH] fix: emit trailing newline when writing lucide-icon-clusters.json save_clusters_json wrote the file without a final newline, so every generated Lucide update PR was born red on the end-of-file-fixer pre-commit hook (tests always passed; only lint failed). Append the newline at the source so update PRs land lint-green. Fixes mikemac-bbyd. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_013oKQt3S2tWA5TWmq1vLSMN --- src/lucide/build_clusters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lucide/build_clusters.py b/src/lucide/build_clusters.py index c85e9c1..69fddb4 100644 --- a/src/lucide/build_clusters.py +++ b/src/lucide/build_clusters.py @@ -232,7 +232,7 @@ def save_clusters_json( "generated_at": datetime.now(tz=timezone.utc).isoformat(), "naming_model": CLUSTER_NAMING_MODEL, } - output_path.write_text(json.dumps(out, indent=2, ensure_ascii=False)) + output_path.write_text(json.dumps(out, indent=2, ensure_ascii=False) + "\n") logger.info("Saved clusters to %s", output_path)