Skip to content

Conversation

@adomani
Copy link
Collaborator

@adomani adomani commented Apr 30, 2025

This linter enforces that the hypotheses of every declaration are correctly formatted.

This already required multiple PRs to make mathlib compliant. Ideally, little by little the linter can be extended to format more of mathlib.


The default linter option is false, but the lakefile enforces it to be true.

This means that the linter does not run on MathlibTest. However, the tests should still be compliant, since the default option was true in development and the tests were fixed.

Open in Gitpod

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jun 17, 2025

✌️ adomani can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Jun 17, 2025
Copy link
Collaborator Author

@adomani adomani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anne and Michael, thank you so much for your reviews! I accepted all the suggestions and added some comments to the code.

I'll merge master, fix any further issues if necessary and merge!

@adomani adomani force-pushed the test/recoverpplint branch from 0132186 to eafbad4 Compare June 17, 2025 17:22
@adomani
Copy link
Collaborator Author

adomani commented Jun 17, 2025

bors merge

Finally! 😄

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the ready-to-merge This PR has been sent to bors. label Jun 17, 2025
mathlib-bors bot pushed a commit that referenced this pull request Jun 17, 2025
This linter enforces that the hypotheses of every declaration are correctly formatted.

This already required multiple PRs to make mathlib compliant. Ideally, little by little the linter can be extended to format more of mathlib.



Co-authored-by: Michael Rothgang <[email protected]>
Co-authored-by: grunweg <[email protected]>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jun 17, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: a linter to enforce formatting [Merged by Bors] - feat: a linter to enforce formatting Jun 17, 2025
@mathlib-bors mathlib-bors bot closed this Jun 17, 2025
@mathlib-bors mathlib-bors bot deleted the test/recoverpplint branch June 17, 2025 18:57
Rida-Hamadani pushed a commit to Rida-Hamadani/mathlib4 that referenced this pull request Jun 24, 2025
Rida-Hamadani pushed a commit to Rida-Hamadani/mathlib4 that referenced this pull request Jun 24, 2025
Rida-Hamadani pushed a commit to Rida-Hamadani/mathlib4 that referenced this pull request Jun 24, 2025
This linter enforces that the hypotheses of every declaration are correctly formatted.

This already required multiple PRs to make mathlib compliant. Ideally, little by little the linter can be extended to format more of mathlib.



Co-authored-by: Michael Rothgang <[email protected]>
Co-authored-by: grunweg <[email protected]>
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Jul 7, 2025
This linter enforces that the hypotheses of every declaration are correctly formatted.

This already required multiple PRs to make mathlib compliant. Ideally, little by little the linter can be extended to format more of mathlib.



Co-authored-by: Michael Rothgang <[email protected]>
Co-authored-by: grunweg <[email protected]>
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
Found by the linter in leanprover-community#24465.



Co-authored-by: Michael Rothgang <[email protected]>
Co-authored-by: grunweg <[email protected]>
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
This linter enforces that the hypotheses of every declaration are correctly formatted.

This already required multiple PRs to make mathlib compliant. Ideally, little by little the linter can be extended to format more of mathlib.



Co-authored-by: Michael Rothgang <[email protected]>
Co-authored-by: grunweg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). large-import Automatically added label for PRs with a significant increase in transitive imports ready-to-merge This PR has been sent to bors. t-linter Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants