Skip to content

[Merged by Bors] - fix: make the allowed unused tactics extensible#14557

Closed
adomani wants to merge 5 commits intomasterfrom
adomani/allow_unused_tactics
Closed

[Merged by Bors] - fix: make the allowed unused tactics extensible#14557
adomani wants to merge 5 commits intomasterfrom
adomani/allow_unused_tactics

Conversation

@adomani
Copy link
Copy Markdown
Contributor

@adomani adomani commented Jul 9, 2024

This PR allows to change the tactics that the unused tactic linter ignores.

The main use-case is allowing done at the end of proofs, which is very useful for teaching purposes. See for instance this Zulip thread.


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 9, 2024

PR summary 4d954560de

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

- allowed

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

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

Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

This change seems well-motivated; thank you for doing this!
I have two wording suggestions on the docs. I'm seeing IO.Ref for the first time (and it's undocumented...), so somebody else should review this part carefully. The remainder looks good to me.

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Jul 9, 2024

PS. I would call this a "feature" PR; this might be a matter of taste :-)

@adomani
Copy link
Copy Markdown
Contributor Author

adomani commented Jul 9, 2024

@eric-wieser, I know that you have some reservations on IO.Ref: this is just a heads-up that I am using one here! 😄

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Jul 9, 2024

Thanks, looks good to me. Let's have a more qualified pair of eyes, perhaps Eric?
maintainer merge

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 9, 2024

🚀 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 Jul 9, 2024
@jcommelin
Copy link
Copy Markdown
Member

Thanks 🎉

If CI passes, please remove the label awaiting-CI and merge this yourself, by adding a comment bors r+.

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 9, 2024

✌️ 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.

@jcommelin jcommelin added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 9, 2024
@github-actions github-actions bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Jul 9, 2024
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 9, 2024
@adomani
Copy link
Copy Markdown
Contributor Author

adomani commented Jul 9, 2024

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Jul 9, 2024
This PR allows to change the tactics that the unused tactic linter ignores.

The main use-case is allowing `done` at the end of proofs, which is very useful for teaching purposes.  See for instance [this Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Disable.20.60linter.2EunusedTactic.60.20warning.20for.20.60done.60).
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 9, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix: make the allowed unused tactics extensible [Merged by Bors] - fix: make the allowed unused tactics extensible Jul 9, 2024
@mathlib-bors mathlib-bors bot closed this Jul 9, 2024
@mathlib-bors mathlib-bors bot deleted the adomani/allow_unused_tactics branch July 9, 2024 12:42
@adomani adomani mentioned this pull request Aug 1, 2024
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). maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. t-linter Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants