chore: forbid prime (') in filenames, rename LinearCombination'#35518
chore: forbid prime (') in filenames, rename LinearCombination'#35518
Conversation
PR summary 7d9358ee9dImport changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
note: file note: file |
|
Thank you for addressing this small but annoying developer experience issue. This closes #25244 . After this change all filenames in the repo will match on |
My take on this is that we should avoid writing bash scripts in the first place, either because Python is by all reasonable metrics a safer language, or because we should be dog-fooding ourselves writing our scripts in Lean instead. While I wouldn't say that keeping these primes is the correct strategy to increase the quality of the mathlib scripts, it probably is an effective one. |
|
Filenames are infrastructure. Infrastructure should be maximally boring and frictionless. Avoiding Even with Python or Lean tooling, users still interact with Git and shells directly, and quoting issues remain. |
I presume this is tongue-in-cheek and not an actual objection. |
|
The deprecated module files would need to have |
|
This pull request has conflicts, please merge |
The apostrophe/prime character in filenames causes shell escaping issues in scripts. This renames the two affected files and adds a lint check to prevent new files with primes in their names. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
04c6231 to
b5c59ee
Compare
This PR renames
Mathlib/Tactic/LinearCombination'.leantoLinearCombinationPrime.lean(and the corresponding test file), and adds a lint check tomodulesOSForbiddento prevent future files with prime/apostrophe characters in their names.The
'character in filenames causes shell escaping issues in scripts (anyfind ... -name '*.lean'or similar pattern needs careful quoting to handle these files correctly).🤖 Prepared with Claude Code