Repository navigation
fix(lint): Suppress S035 in preprod size status check script - #131763
Merged
Merged
Conversation
The script has no .py extension, so it was not annotated when S035 landed, and master now fails flake8-sentry on any PR that runs prek --all-files. Co-Authored-By: Dominik Dorfmeister <[email protected]>
ArthurKnaus
approved these changes
Nov 19, 2026
leeandher
added a commit
that referenced
this pull request
Nov 20, 2026
lint config changes should now run `prek --all-files` instead of `prek --files` which 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
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.
#130924 added the S035 rule for
.first()on an unordered queryset. The existing call site inbin/preprod/trigger_size_status_checkwas missed because the script has no.pyextension, so master has an S035 violation that only shows up on PRs large enough to check every file.This adds
# noqa: S035, the same suppression the other existing call sites use. No behavior change; this is a dev-only debugging script.via @TkDodo.
--
View Session [Sentry]