Repository navigation
chore(ci): Lint all files when lint configuration changes - #131867
Merged
Merged
Conversation
leeandher
commented
Nov 19, 2026
| # stops bash from starting. Leave it empty and lint every file instead. | ||
| ALL_FILES: ${{ fromJSON(steps.changes.outputs.all_count) <= 1000 && steps.changes.outputs.all_files || '' }} | ||
| # stops bash from starting. Lint every file instead. | ||
| TOO_MANY_FILES: ${{ fromJSON(steps.changes.outputs.changed_count) > 1000 }} |
Member
Author
There was a problem hiding this comment.
copied the pattern from
sentry/.github/workflows/frontend.yml
Lines 200 to 203 in bca2cfc
joshuarli
approved these changes
Nov 19, 2026
leeandher
force-pushed
the
leander/prek-all-on-lint-changes
branch
from
November 19, 2026 21:32
842a0c9 to
4261fec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lint config changes should now run
prek --all-filesinstead ofprek --fileswhich may miss some violations that would cause failures on future, unrelated PRs.this happened when I added a new s035 flake8 rule in #130924, which passed CI on branch + master, but caused a violation in a PR with >1000 files updated, thus requiring a separate PR (#131763) to be merged and unblock it
the responsibility of addressing violations should fall on the PRs that add the rule, and only require other contributors to address the violations they introduce