Skip to content

[Merged by Bors] - feat(lint-style): fix update-style-exceptions.py; produce human-readable output by default - #14012

Closed
grunweg wants to merge 3 commits into
masterfrom
MR-human-readable-output
Closed

grunweg wants to merge 3 commits into
masterfrom
MR-human-readable-output

Conversation

@grunweg

@grunweg grunweg commented Jun 21, 2024 •

Copy link
Copy Markdown
Contributor
  • Fix the output of update-style-exceptions.py by making lake exe lint_style optionally produce output in the right format: this regressed in [Merged by Bors] - feat: rewrite file length check in Lean #13620
  • The current error messages are tailored for github annotations, which are not very readable for running the linter locally. Produce a human-readable and clickable error by default, but add a flag (which CI sets) for producing github-style output.

This entails adding a small CLI for the lint-style executable.

@github-actions

github-actions Bot commented Jun 21, 2024 •

Copy link
Copy Markdown

PR summary 688da36a2d

Import changes

Dependency changes

File Base Count Head Count Change
Mathlib.Tactic.Linter.TextBased 2 3 +1 (+50.00%)

Declarations diff

+ ErrorFormat
+ lintStyleCli
+ lint_style

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>

@ghost ghost added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) and removed blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) labels Jun 21, 2024
grunweg added 2 commits June 21, 2024 10:39
The current error messages are tailored for github annotations, which
are not very nice for running the linter locally. Produce a human-readable
and -clickable error by default, but add a flag (which CI sets)
for producing github-style output.

This entails adding a small CLI for the lint-style executable.
@grunweg
grunweg force-pushed the MR-human-readable-output branch from 273d68e to 7c10d6c Compare June 21, 2024 08:39
@grunweg grunweg changed the title feat(lint-style): produce human-readable output by default feat(lint-style): fix update-style-exceptions.py; produce human-readable output by default Jun 21, 2024
@grunweg

grunweg commented Jun 21, 2024 •

Copy link
Copy Markdown
Contributor Author

I'm happy to split out the "human-readable" part (if desired), but it wouldn't make this PR much shorter.

@kim-em

kim-em commented Jun 23, 2024

Copy link
Copy Markdown
Contributor

bors merge

@github-actions github-actions Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Jun 23, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Jun 23, 2024
…dable output by default (#14012)

- Fix the output of `update-style-exceptions.py` by making `lake exe lint_style` optionally produce output in the right format: this regressed in #13620
- The current error messages are tailored for github annotations, which are not very readable for running the linter locally. Produce a human-readable and clickable error by default, but add a flag (which CI sets) for producing github-style output.

This entails adding a small CLI for the lint-style executable.
@mathlib-bors

mathlib-bors Bot commented Jun 23, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(lint-style): fix update-style-exceptions.py; produce human-readable output by default [Merged by Bors] - feat(lint-style): fix update-style-exceptions.py; produce human-readable output by default Jun 23, 2024
@mathlib-bors mathlib-bors Bot closed this Jun 23, 2024
@mathlib-bors
mathlib-bors Bot deleted the MR-human-readable-output branch June 23, 2024 08:02
kbuzzard pushed a commit that referenced this pull request Jun 26, 2024
…dable output by default (#14012)

- Fix the output of `update-style-exceptions.py` by making `lake exe lint_style` optionally produce output in the right format: this regressed in #13620
- The current error messages are tailored for github annotations, which are not very readable for running the linter locally. Produce a human-readable and clickable error by default, but add a flag (which CI sets) for producing github-style output.

This entails adding a small CLI for the lint-style executable.
dagurtomas pushed a commit that referenced this pull request Jul 2, 2024
…dable output by default (#14012)

- Fix the output of `update-style-exceptions.py` by making `lake exe lint_style` optionally produce output in the right format: this regressed in #13620
- The current error messages are tailored for github annotations, which are not very readable for running the linter locally. Produce a human-readable and clickable error by default, but add a flag (which CI sets) for producing github-style output.

This entails adding a small CLI for the lint-style executable.
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.

2 participants