8000 Fix suppression indentation matching by amyreese · Pull Request #22903 · astral-sh/ruff · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@amyreese
Copy link
Member

When loading suppression comments from tokens, fix the token lookback
to look far enough back to find an indent token that isn't matched by
a dedent token. This prevents the system from marking "enable" comments
as having "invalid indentation".

Fix #22869

@astral-sh-bot
Copy link
astral-sh-bot bot commented Jan 28, 2026

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@amyreese amyreese force-pushed the amy/block-suppression-fix branch from 6068ad6 to ae68f90 Compare January 28, 2026 02:28
@amyreese amyreese added suppression Related to supression of violations e.g. noqa bug Something isn't working labels Jan 28, 2026
@amyreese amyreese requested review from dylwil3 and ntBre January 28, 2026 02:28
Copy link
Collaborator
@dylwil3 dylwil3 left a comment

Choose a reason for hiding this comment

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

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working suppression Related to supression of violations e.g. noqa

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0.14.14 breaks block suppresion

3 participants

0