Repository navigation
Conversation
PR summary e315cf4660Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
!bench |
|
Benchmark results for 9e2d44c against d4acc3b are in. No significant results found. @thorimur
Small changes (7✅, 3🟥)
|
|
Would applying the same logic allow running |
|
Aside from these minor comments, LGTM! |
|
With the adjustments above made, this LGTM! |
|
✌️ thorimur can now approve this pull request until 2026-11-03 16:25 UTC (in 2 weeks). To approve and merge, reply with
|
|
@grunweg I also just wanted to mention this aspect of the PR, which I had forgotten to put in the PR description originally:
I'll merge in a few hours or earlier if you happen to see this. :) |
|
Looks good to me, thanks! |
|
bors r+ |
This PR modifies the way the header linter finds the library root from the current module. Instead of assuming that the current working directory contains the root, we peel off components from the current filename and match them against the current module name until we reach the root. We also adjust the directory dependency linter to take in a `srcDir` when locating `Mathlib.Init` and `scripts/forbiddenDirs.json`, which we provide as the parent of this filepath. This is both more principled and enables us to apply header linter suggestions from skimmer, which is started from `scripts/`. It also has the effect of (correctly) running these linters when building mathlib as an upstream dependency, just as we run mathlib's other linters in the same circumstance. Note that the `scripts/` folder is distributed along with the source files, so we are still able to locate `scripts/forbiddenDirs.json` successfully. (This was tested locally with a minimal downstream project.) This was used in conjunction with #44507 to create #45071. (This PR also adjusts the style of some nearby but unrelated `MessageData` handling.)
|
Pull request successfully merged into master. Build succeeded: |
This PR modifies the way the header linter finds the library root from the current module. Instead of assuming that the current working directory contains the root, we peel off components from the current filename and match them against the current module name until we reach the root.
We also adjust the directory dependency linter to take in a
srcDirwhen locatingMathlib.Initandscripts/forbiddenDirs.json, which we provide as the parent of this filepath.This is both more principled and enables us to apply header linter suggestions from skimmer, which is started from
scripts/. It also has the effect of (correctly) running these linters when building mathlib as an upstream dependency, just as we run mathlib's other linters in the same circumstance. Note that thescripts/folder is distributed along with the source files, so we are still able to locatescripts/forbiddenDirs.jsonsuccessfully. (This was tested locally with a minimal downstream project.)This was used in conjunction with #44507 to create #45071.
(This PR also adjusts the style of some nearby but unrelated
MessageDatahandling.)