Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 24 commits into from

Conversation

grunweg
Copy link
Collaborator

@grunweg grunweg commented Jul 23, 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.


Open in Gitpod

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
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the blocked-by-other-PR This PR depends on another PR to Mathlib (this label is automatically managed by a bot) label Jul 23, 2024
Copy link

github-actions bot commented Jul 23, 2024

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.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot 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
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot 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
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the blocked-by-other-PR This PR depends on another PR to Mathlib (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
Copy link
Contributor

kim-em commented Aug 15, 2024

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
Copy link
Contributor

mathlib-bors bot commented Aug 16, 2024

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
Copy link
Collaborator Author

grunweg commented Aug 16, 2024

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.

4 participants