Skip to content

[Merged by Bors] - refactor: create a LinterSet for all mathlib syntax linters enabled b…#24924

Closed
grunweg wants to merge 9 commits intomasterfrom
MR-mathlib-linter-set
Closed

[Merged by Bors] - refactor: create a LinterSet for all mathlib syntax linters enabled b…#24924
grunweg wants to merge 9 commits intomasterfrom
MR-mathlib-linter-set

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented May 15, 2025

…y default

Use the new feature added in leanprover/lean4#8106.


The import increase is harmless: this adds one Lean file to Mathlib.Init, which is small and self-contained.

Open in Gitpod

@grunweg grunweg requested a review from Vierkantor May 15, 2025 06:34
@grunweg grunweg added the blocked-by-core-PR This PR depends on a PR to Core/Std label May 15, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented May 15, 2025

PR summary 368dba55a3

Import changes exceeding 2%

% File
+3.70% Mathlib.Init

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Init 27 28 +1 (+3.70%)
Import changes for all files
Files Import difference
There are 6421 files with changed transitive imports taking up over 270181 characters: this is too many to display!
You can run scripts/import_trans_difference.sh all locally to see the whole output.

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@grunweg grunweg force-pushed the MR-mathlib-linter-set branch from d9bf21a to 5a76c90 Compare May 15, 2025 06:37
@github-actions github-actions bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label May 15, 2025
Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

LGTM otherwise, thanks! I should be doing a lot of the upcoming Lean toolchain release so I should be able merge this immediately when the feature is in. But feel free to poke me if I forget about this :)

Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 19, 2025
@leanprover-community-bot-assistant
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 19, 2025
@Vierkantor Vierkantor removed the blocked-by-core-PR This PR depends on a PR to Core/Std label Jun 3, 2025
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jun 3, 2025

CI passes now 🎉 @Vierkantor Anything else left to do?

Copy link
Copy Markdown
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

I tested to make sure that the non-default linters still fire. So I think this is good to go, thank you!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 3, 2025

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

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jun 3, 2025
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jun 3, 2025

Thanks for the review. Let's see how this one does!
bors merge

mathlib-bors bot pushed a commit that referenced this pull request Jun 3, 2025
#24924)

…y default

Use the new feature added in leanprover/lean4#8106.



Co-authored-by: grunweg <rothgami@math.hu-berlin.de>
Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 3, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor: create a LinterSet for all mathlib syntax linters enabled b… [Merged by Bors] - refactor: create a LinterSet for all mathlib syntax linters enabled b… Jun 3, 2025
@mathlib-bors mathlib-bors bot closed this Jun 3, 2025
@mathlib-bors mathlib-bors bot deleted the MR-mathlib-linter-set branch June 3, 2025 14:55
grunweg added a commit that referenced this pull request Jun 3, 2025
joelriou pushed a commit that referenced this pull request Jun 8, 2025
#24924)

…y default

Use the new feature added in leanprover/lean4#8106.



Co-authored-by: grunweg <rothgami@math.hu-berlin.de>
Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
TOMILO87 pushed a commit that referenced this pull request Jun 8, 2025
#24924)

…y default

Use the new feature added in leanprover/lean4#8106.



Co-authored-by: grunweg <rothgami@math.hu-berlin.de>
Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
leanprover-community#24924)

…y default

Use the new feature added in leanprover/lean4#8106.



Co-authored-by: grunweg <rothgami@math.hu-berlin.de>
Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants