Fix suppression indentation matching by amyreese · Pull Request #22903 · astral-sh/ruff (original) (raw)

added 2 commits

January 27, 2026 18:28

@amyreese

@amyreese

@amyreese

@amyreese amyreese deleted the amy/block-suppression-fix branch

January 29, 2026 18:07

AlexWaygood pushed a commit that referenced this pull request

Jan 29, 2026

@amyreese @AlexWaygood

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

carljm added a commit that referenced this pull request

Jan 30, 2026

@carljm

This was referenced

Feb 9, 2026

nicopauss pushed a commit to Intersec/lib-common that referenced this pull request

Apr 1, 2026

@renovate-bot @nicopauss

Released on 2026-03-19.

Released on 2026-03-12.

Released on 2026-03-05.

Released on 2026-02-26.

This is a follow-up release to 0.15.3 that resolves a panic when the new rule PLR1712 was enabled with any rule that analyzes definitions, such as many of the ANN or D rules.

Released on 2026-02-26.

Released on 2026-02-19.

Released on 2026-02-12.

Released on 2026-02-03.

Check out the blog post for a migration guide and overview of the changes!

The following rules have been stabilized and are no longer in preview:

The following behaviors have been stabilized:

This release introduces the new 2026 style guide, with the following changes:

Renovate-Branch: renovate/2024.6-ruff-0.x Change-Id: I8f8e865435fde1fc736fe2528261a604acb46215 Priv-Id: f7e1d99008e3617149c4b639a9a2bbc06212d064

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

[ Show hidden characters]({{ revealButtonHref }})