Skip to content

[Merged by Bors] - feat: remove lint-style.sh - #15051

Closed
grunweg wants to merge 24 commits into
masterfrom
MR-remove-lintstyle.sh
Closed

grunweg wants to merge 24 commits into
masterfrom
MR-remove-lintstyle.sh

Conversation

@grunweg

@grunweg grunweg commented Jul 23, 2024 •

Copy link
Copy Markdown
Contributor

In detail, this PR

  • moves the executable bit check into the .yml files, instead of the shell script
  • adds a --fix flag to lint-style, for fixing style errors (when possible)
  • moves calling lint-style.py into lake exe lint-style, and
  • switches the CI workflow to call lake exe lint-style instead, and removes lint-style.sh

Ideally, lint-style.py will be completely rewritten in Lean soon, so this calling of an external process is only temporary.

Helps with #14539.


Open in Gitpod

grunweg added 22 commits July 13, 2024 17:13
core logic not implemented yet (comes next).
This will be used twice more in the next commit.
And use the / notation for file paths, as it's nicer to read.
always regenerate the entire file; no filtering "does the existing exception
cover this already, then let me keep it" yet
I need to have a notation of "exception covers new error", but also indicating
a preference if the old or the new entry is to be prefered.

Write a custom method for this, rather than overloading BEq.
to match the naming convention: all of them are terms of Type,
or functions returning such.
Inline it into the workflow file instead:
this means lint-style.sh is only calling lint-style.py now.
@grunweg grunweg added the t-linter Linter label Jul 23, 2024
@ghost ghost added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jul 23, 2024
@github-actions

github-actions Bot commented Jul 23, 2024 •

Copy link
Copy Markdown

PR summary c6b780f490

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 merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 25, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 15, 2024
@grunweg
grunweg force-pushed the MR-remove-lintstyle.sh branch 2 times, most recently from f389191 to fe73a10 Compare August 15, 2024 15:02
@ghost ghost removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 15, 2024
@grunweg
grunweg force-pushed the MR-remove-lintstyle.sh branch 2 times, most recently from 03a8bbf to 9b766ce Compare August 15, 2024 15:06
@kim-em

kim-em commented Aug 15, 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 Aug 15, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Aug 15, 2024
In detail, this PR
- moves the executable bit check into the .yml files, instead of the shell script
- adds a `--fix` flag to `lint-style`, for fixing style errors (when possible)
- moves calling `lint-style.py` into `lake exe lint-style`, and
- switches the CI workflow to call `lake exe lint-style` instead, and removes `lint-style.sh`

Ideally, `lint-style.py` will be completely rewritten in Lean soon, so this calling of an external process is only temporary.

Helps with #14539.
@mathlib-bors

mathlib-bors Bot commented Aug 16, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: remove lint-style.sh [Merged by Bors] - feat: remove lint-style.sh Aug 16, 2024
@mathlib-bors mathlib-bors Bot closed this Aug 16, 2024
@mathlib-bors
mathlib-bors Bot deleted the MR-remove-lintstyle.sh branch August 16, 2024 00:02
@grunweg

grunweg commented Aug 16, 2024

Copy link
Copy Markdown
Contributor Author

Thank you for the fast review!

bjoernkjoshanssen pushed a commit that referenced this pull request Sep 9, 2024
In detail, this PR
- moves the executable bit check into the .yml files, instead of the shell script
- adds a `--fix` flag to `lint-style`, for fixing style errors (when possible)
- moves calling `lint-style.py` into `lake exe lint-style`, and
- switches the CI workflow to call `lake exe lint-style` instead, and removes `lint-style.sh`

Ideally, `lint-style.py` will be completely rewritten in Lean soon, so this calling of an external process is only temporary.

Helps with #14539.
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 9, 2024
In detail, this PR
- moves the executable bit check into the .yml files, instead of the shell script
- adds a `--fix` flag to `lint-style`, for fixing style errors (when possible)
- moves calling `lint-style.py` into `lake exe lint-style`, and
- switches the CI workflow to call `lake exe lint-style` instead, and removes `lint-style.sh`

Ideally, `lint-style.py` will be completely rewritten in Lean soon, so this calling of an external process is only temporary.

Helps with #14539.
bjoernkjoshanssen pushed a commit that referenced this pull request Sep 12, 2024
In detail, this PR
- moves the executable bit check into the .yml files, instead of the shell script
- adds a `--fix` flag to `lint-style`, for fixing style errors (when possible)
- moves calling `lint-style.py` into `lake exe lint-style`, and
- switches the CI workflow to call `lake exe lint-style` instead, and removes `lint-style.sh`

Ideally, `lint-style.py` will be completely rewritten in Lean soon, so this calling of an external process is only temporary.

Helps with #14539.
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