Skip to content

[Merged by Bors] - fix(deprecated module): automatically disable the header linter#24027

Closed
adomani wants to merge 1 commit intomasterfrom
adomani/no_header_in_deprecated_module
Closed

[Merged by Bors] - fix(deprecated module): automatically disable the header linter#24027
adomani wants to merge 1 commit intomasterfrom
adomani/no_header_in_deprecated_module

Conversation

@adomani
Copy link
Copy Markdown
Contributor

@adomani adomani commented Apr 14, 2025

This PR makes the header linter silent if the first non-import command of a file is deprecated_module.

Zulip#mathlib4 > `Deprecated` folder @ 💬


Open in Gitpod

@github-actions
Copy link
Copy Markdown

PR summary f1b0853eca

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.


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).

@github-actions github-actions bot added the t-linter Linter label Apr 14, 2025
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Apr 14, 2025

Thanks for doing this; I was considering to create this Pr myself!
maintainer merge

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by grunweg.

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Apr 14, 2025
Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Apr 14, 2025
mathlib-bors bot pushed a commit that referenced this pull request Apr 14, 2025
This PR makes the `header` linter silent if the first non-import command of a file is `deprecated_module`.

[Zulip#mathlib4 > &#96;Deprecated&#96; folder @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/.60Deprecated.60.20folder/near/511986519)
grunweg added a commit that referenced this pull request Apr 14, 2025
PR #24027 removes the need to disable the header linter before module
deprecations.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 14, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix(deprecated module): automatically disable the header linter [Merged by Bors] - fix(deprecated module): automatically disable the header linter Apr 14, 2025
@mathlib-bors mathlib-bors bot closed this Apr 14, 2025
@mathlib-bors mathlib-bors bot deleted the adomani/no_header_in_deprecated_module branch April 14, 2025 10:02
mathlib-bors bot pushed a commit that referenced this pull request Apr 14, 2025
PR #24027 removes the need to disable the header linter before module
deprecations.



Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
tannerduve pushed a commit that referenced this pull request May 13, 2025
This PR makes the `header` linter silent if the first non-import command of a file is `deprecated_module`.

[Zulip#mathlib4 > &#96;Deprecated&#96; folder @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/.60Deprecated.60.20folder/near/511986519)
tannerduve pushed a commit that referenced this pull request May 13, 2025
PR #24027 removes the need to disable the header linter before module
deprecations.



Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants