new module for parsing ranged suppressions by amyreese · Pull Request #21441 · astral-sh/ruff (original) (raw)
added 2 commits
amyreese marked this pull request as ready for review
MichaReiser changed the title
[ruff] new module for parsing ranged suppressions new module for parsing ranged suppressions
amyreese linked an issue
that may beclosed by this pull request
2 tasks
dcreager added a commit that referenced this pull request
- origin/main:
new module for parsing ranged suppressions (#21441)
[ty]
type[T]is assignable to an inferable typevar (#21766) Fix syntax error false positives forawaitoutside functions (#21763) [ty] Improve diagnostics for unsupported comparison operations (#21737)
dcreager added a commit that referenced this pull request
- origin/main:
[ty] Improve
@override,@finaland Liskov checks in cases where there are multiple reachable definitions (#21767) [ty] Extendinvalid-explicit-overrideto also cover properties decorated with@overridethat do not override anything (#21756) [ty] Enable LRU collection for parsed module (#21749) [ty] Support typevar-specialized dynamic types in generic type aliases (#21730) Add token basedparenthesized_rangesimplementation (#21738) [ty] Default-specialization of generic type aliases (#21765) [ty] Suppress false positives whendataclasses.dataclass(...)(cls)is called imperatively (#21729) [syntax-error] Default type parameter followed by non-default type parameter (#21657) new module for parsing ranged suppressions (#21441) [ty]type[T]is assignable to an inferable typevar (#21766) Fix syntax error false positives forawaitoutside functions (#21763) [ty] Improve diagnostics for unsupported comparison operations (#21737) MoveToken,TokenKindandTokenstoruff-python-ast(#21760) [ty] Don't confuse multiple occurrences oftyping.Selfwhen binding bound methods (#21754) Use our org-wide Renovate preset (#21759) Deletemy-script.py(#21751) [ty] Moveall_members, and related types/routines, out ofide_support.rs(#21695)
amyreese added a commit that referenced this pull request
Builds on range suppressions from #21441
Filters diagnostics based on parsed valid range suppressions.
Issue: #3711
amyreese added a commit that referenced this pull request
amyreese added a commit that referenced this pull request
amyreese added a commit that referenced this pull request
amyreese added a commit that referenced this pull request
- Adds
Tokens::split_at()to get tokens before/after an offset. - Updates
Suppressions::load_from_tokensto take anIndexerand use comment ranges to minimize the need for walking tokens looking for indent/dedent.
Adapted from #21441 (review)
Fixes #22087
KotlinIsland pushed a commit to KotlinIsland/basedpython that referenced this pull request
Builds on range suppressions from astral-sh/ruff#21441
Filters diagnostics based on parsed valid range suppressions.
Issue: #3711
KotlinIsland pushed a commit to KotlinIsland/basedpython that referenced this pull request
- Adds
Tokens::split_at()to get tokens before/after an offset. - Updates
Suppressions::load_from_tokensto take anIndexerand use comment ranges to minimize the need for walking tokens looking for indent/dedent.
Adapted from astral-sh/ruff#21441 (review)
Fixes #22087
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 }})