Skip to content

ci: lit_imports.py's Lean program is in ci/, not lean/ - #4865

Merged
alex merged 1 commit into
mainfrom
claude/laughing-wozniak-qs1ilo-lit-imports
Nov 9, 2026
Merged

alex merged 1 commit into
mainfrom
claude/laughing-wozniak-qs1ilo-lit-imports

Conversation

@alex

@alex alex commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

lean/CheckLitImports.lean becomes ci/lit_imports.lean.

It is the half of ci/lit_imports.py that has to be written in Lean: only that script runs it, and it imports nothing of the project (it loads the modules it is given). So it goes beside its caller, as ci/lean_module_uses.lean is beside check_lean_public_imports.py. Its content is unchanged but for its own name in its usage text.

In lean/, it also counted toward the key of the Lean build's cache (lean/*.lean in .github/actions/lean-keys), so editing this profiling tool made CI plan a new build.

Also changed

  • ci/lit_imports.py runs it from its new path; ci/README.md and lean/README.md name it there.
  • lean/README.md's layout now lists VerifiedGarbageAuditBase.lean, the one file of lean/ it left out.

With this, #4863 and #4864, the files directly in lean/ are the ones the lean-modules skill already says are there: Emit.lean, EmitOne.lean and VerifiedGarbageAuditBase.lean.

Checked

Ran the moved program from lean/ on a registration file's modules (it prints its lines as before), and ci/run_unit_tests.py.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TKUFHEGP56j2eAMhXoFNTU

lean/CheckLitImports.lean is run only by ci/lit_imports.py, and imports
nothing of the project: it is ci/lit_imports.lean, beside its caller, as
ci/lean_module_uses.lean is. lean/'s own files are now the emitters and the
check of the audit's base, which the README's layout lists.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TKUFHEGP56j2eAMhXoFNTU
@alex
alex enabled auto-merge November 9, 2026 20:54
@alex
alex added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 4f8f8fb Nov 9, 2026
21 checks passed
@alex
alex deleted the claude/laughing-wozniak-qs1ilo-lit-imports branch November 9, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants