Skip to content

[Merged by Bors] - feat: extend the linter against broad imports - #14898

Closed
grunweg wants to merge 3 commits into
masterfrom
MR-extend-imports-check
Closed

grunweg wants to merge 3 commits into
masterfrom
MR-extend-imports-check

Conversation

@grunweg

@grunweg grunweg commented Jul 19, 2024 •

Copy link
Copy Markdown
Contributor

Also lint on importing Tactic.{Have,Replace} or any file in the Deprecated directory.
Both of these are not supposed to be imported; this linter enforces it.


Open in Gitpod

@grunweg grunweg added the t-linter Linter label Jul 19, 2024
@github-actions

github-actions Bot commented Jul 19, 2024 •

Copy link
Copy Markdown

PR summary 36a2057c88

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

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.

@ghost ghost added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jul 19, 2024
@grunweg
grunweg force-pushed the MR-extend-imports-check branch from eadb1f5 to f5989e2 Compare July 19, 2024 09:03
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 19, 2024
@ghost ghost removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 9, 2024
@grunweg

grunweg commented Oct 10, 2024 •

Copy link
Copy Markdown
Contributor Author

This PR should be rewritten on top of the header linter: let's land that one first, then this PR can be re-considered.
(Update: that linter has since landed, and this PR has been rewritten accordingly.)

@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Oct 10, 2024
@grunweg
grunweg force-pushed the MR-extend-imports-check branch from f5989e2 to 77e1967 Compare October 12, 2024 07:18
@grunweg grunweg removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 12, 2024
@github-actions github-actions Bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Oct 12, 2024
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Oct 16, 2024
@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 Oct 16, 2024
@grunweg
grunweg force-pushed the MR-extend-imports-check branch from 3ab3178 to 8d794ae Compare October 16, 2024 07:34
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 16, 2024
@github-actions github-actions Bot removed the large-import Automatically added label for PRs with a significant increase in transitive imports label Oct 16, 2024
@j-loreaux

Copy link
Copy Markdown
Contributor

@grunweg what is the header PR you mentioned? The bot automatically removed the blocked label because there was no depends on line in the PR description.

@j-loreaux j-loreaux added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Oct 24, 2024
@grunweg

grunweg commented Oct 24, 2024

Copy link
Copy Markdown
Contributor Author

@j-loreaux That was #16574: that PR has since landed, and this PR has been adapted accordingly. (I removed it from the PR description after that, so it's not visible any more; sorry for the confusion.)
In other words: from my side, this PR is ready for review.

@grunweg grunweg removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Oct 24, 2024
@j-loreaux

Copy link
Copy Markdown
Contributor

LGTM.

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by j-loreaux.

@github-actions github-actions Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 24, 2024
@kim-em

kim-em commented Oct 24, 2024

Copy link
Copy Markdown
Contributor

bors merge

@github-actions github-actions Bot added the ready-to-merge This PR has been sent to bors. label Oct 24, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Oct 24, 2024
Also lint on importing `Tactic.{Have,Replace}` or any file in the `Deprecated` directory.
Both of these are not supposed to be imported; this linter enforces it.
@mathlib-bors

mathlib-bors Bot commented Oct 24, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: extend the linter against broad imports [Merged by Bors] - feat: extend the linter against broad imports Oct 24, 2024
@mathlib-bors mathlib-bors Bot closed this Oct 24, 2024
@mathlib-bors
mathlib-bors Bot deleted the MR-extend-imports-check branch October 24, 2024 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. 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.

5 participants