Repository navigation
Conversation
PR summary 5291bffc22Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
9d07cd5 to
08c24d0
Compare
08c24d0 to
9431f94
Compare
…nd author lines They are superseded by the header linter. Also simplify lint-style.py accordingly, and remove no longer necessary entries in nolints-style.
9431f94 to
293e33a
Compare
|
@adomani Would you like to review this removal PR? (I am fine with waiting for a few days to land this, out of prudence.) |
|
I suggest an experiment: add a file that breaks the rules and see that the new linter actually catches the errors. But probably people who are more involved in CI and metaprogramming have better ideas. |
|
I just added such a file, the linter works locally. Does that look sufficient to you? (If CI fails, I'll remove it again.) |
|
The internal logic of the headerLinter is tested in The test here also seems to work: besides the fact that the "new" definition does not have a doc-string, there are also My main reason for not being immediately enthusiastic about removing these "text-based" linters is that the syntax linter will typically lint |
|
Wasn't the point of Especially since my not-so-secret medium-term plan is to remove |
|
Right, I simply have not yet accepted that the style-linters will not necessarily by style-compliant, that's all! I agree that having as much as possible enforced in Lean is a good aim: once CI is happy, I am happy to maintainer merge this PR! |
|
I share your wish that these files should be style-compliant! |
adomani
left a comment
There was a problem hiding this comment.
Looks good to me!
I see that Bryan self-assigned this PR, so I won't maintainer merge, in case he wants to add something, but I am happy with merging it!
Thanks!
Every file importing Mathlib.Init transitively imports this file already, thus having its module docstring and copyright header checked by the header linter. This adds the same input to every file *imported in* Mathlib.Init. Helps with #17556.
|
This is what was going to happen once the linter had been rewritten as a syntax linter, isn't it? 😉 I'll maintainer merge and also ping @bryangingechen, in case there are any last-minute comments! |
|
🚀 Pull request has been placed on the maintainer queue by adomani. |
|
LGTM, thanks for the ping! |
|
Pull request successfully merged into master. Build succeeded: |
They are superseded by the header linter (#16574).