Skip to content

fix(lint): Suppress S035 in preprod size status check script - #131763

Merged
TkDodo merged 1 commit into
masterfrom
fix/s035-trigger-size-status-check
Nov 19, 2026
Merged

TkDodo merged 1 commit into
masterfrom
fix/s035-trigger-size-status-check

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

#130924 added the S035 rule for .first() on an unordered queryset. The existing call site in bin/preprod/trigger_size_status_check was missed because the script has no .py extension, 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]

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]>
@TkDodo
TkDodo marked this pull request as ready for review November 19, 2026 09:49
@TkDodo
TkDodo requested a review from a team as a code owner November 19, 2026 09:49
@sentry-junior
sentry-junior Bot requested a review from TkDodo November 19, 2026 09:49
@TkDodo
TkDodo merged commit fa98841 into master Nov 19, 2026
68 checks passed
@TkDodo
TkDodo deleted the fix/s035-trigger-size-status-check branch November 19, 2026 09:52
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants