Repository navigation
ci: lit_imports.py's Lean program is in ci/, not lean/ - #4865
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lean/CheckLitImports.leanbecomesci/lit_imports.lean.It is the half of
ci/lit_imports.pythat 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, asci/lean_module_uses.leanis besidecheck_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/*.leanin.github/actions/lean-keys), so editing this profiling tool made CI plan a new build.Also changed
ci/lit_imports.pyruns it from its new path;ci/README.mdandlean/README.mdname it there.lean/README.md's layout now listsVerifiedGarbageAuditBase.lean, the one file oflean/it left out.With this, #4863 and #4864, the files directly in
lean/are the ones thelean-modulesskill already says are there:Emit.lean,EmitOne.leanandVerifiedGarbageAuditBase.lean.Checked
Ran the moved program from
lean/on a registration file's modules (it prints its lines as before), andci/run_unit_tests.py.🤖 Generated with Claude Code
https://claude.ai/code/session_01TKUFHEGP56j2eAMhXoFNTU