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

test style linters / reviewdog in a clean branch #15934

Closed
wants to merge 11 commits into from

Conversation

bryangingechen
Copy link
Contributor

@bryangingechen bryangingechen commented Aug 18, 2024

Not to be merged! A cleaner test to demonstrate a possible issue with the linters introduced in #15051 and found here.


Open in Gitpod

@github-actions github-actions bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Aug 18, 2024
Copy link

github-actions bot commented Aug 18, 2024

PR summary 065be92098

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.

@bryangingechen bryangingechen marked this pull request as ready for review August 18, 2024 13:57
@bryangingechen bryangingechen added the test-ci A label used to help test CI actions label Aug 18, 2024
@bryangingechen
Copy link
Contributor Author

@grunweg Here's a test of the style linters in a branch with no changes to the workflow files. As in #15781, the linter errors show up in the logs but are not acted upon by reviewdog (the usual linter step also shows the same errors but doesn't complain either).

@bryangingechen bryangingechen changed the title test reviewdog in a clean branch test style linters / reviewdog in a clean branch Aug 18, 2024
While at it, tweak the formatting of error messages slightly:
avoid an extra newline after the Python output,
and pluralise errors more correctly.
@grunweg
Copy link
Collaborator

grunweg commented Aug 19, 2024

Thanks for the clean reproduction. I found the error, and it is indeed a regression from the rewrite (sorry!).
The new code forgot to fail the build for Python style errors. Filed as #15954.

grunweg and others added 8 commits August 19, 2024 02:41
While at it, tweak the formatting of error messages slightly:
avoid an extra newline after the Python output,
and pluralise errors more correctly.

Now, we ought to use allUnexpectedError.size for checking:
otherwise, we may print about how to fix 0 errors :-)
@@ -152,13 +152,13 @@ identity holds.
-/
lemma act_act_self_eq (x y : S) : (x ◃ y) ◃ x = x ◃ y := by
have h : (x ◃ y) ◃ x = (x ◃ y) ◃ (x ◃ 1) := by rw [act_one]
rw [h, ← Shelf.self_distrib, act_one]
rw [h, ←Shelf.self_distrib, act_one]

Choose a reason for hiding this comment

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

[lint-style] reported by reviewdog 🐶

Suggested change
rw [h, ←Shelf.self_distrib, act_one]
rw [h, ← Shelf.self_distrib, act_one]


lemma act_idem (x : S) : (x ◃ x) = x := by rw [← act_one x, ← Shelf.self_distrib, act_one]

lemma act_self_act_eq (x y : S) : x ◃ (x ◃ y) = x ◃ y := by
have h : x ◃ (x ◃ y) = (x ◃ 1) ◃ (x ◃ y) := by rw [act_one]
rw [h, ← Shelf.self_distrib, one_act]
rw [h, ←Shelf.self_distrib, one_act]

Choose a reason for hiding this comment

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

[lint-style] reported by reviewdog 🐶

Suggested change
rw [h, ←Shelf.self_distrib, one_act]
rw [h, ← Shelf.self_distrib, one_act]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! test-ci A label used to help test CI actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants