ruff/crates
Amethyst Reese 3d334a313e
Report diagnostics for invalid/unmatched range suppression comments (#21908)
## Summary

- Adds new RUF103 and RUF104 diagnostics for invalid and unmatched
suppression comments
- Reports RUF100 for any unused range suppression
- Reports RUF102 for range suppression comment with invalid rule codes
- Reports RUF103 for range suppression comment with invalid suppression syntax
- Reports RUF104 diagnostics for any unmatched range suppression comment (disable w/o enable)


## Test Plan

Updated snapshots from test cases with unmatched suppression comments

Issue #3711
Fixes #21878
Fixes #21875
2025-12-18 12:58:58 -08:00
..
ruff Bump 0.14.10 (#22058) 2025-12-18 13:08:17 -06:00
ruff_annotate_snippets
ruff_benchmark [ty] Infer typevar specializations for Callable types (#21551) 2025-12-16 09:16:49 -08:00
ruff_cache
ruff_db [ty] Fix some configuration panics in the LSP (#22040) 2025-12-18 09:47:02 -05:00
ruff_dev [ty] Use title for configuration code fences in ty reference documentation (#21992) 2025-12-15 16:36:08 -05:00
ruff_diagnostics Update debug_assert which pointed at missing method (#21969) 2025-12-13 17:56:59 -05:00
ruff_formatter Update MSRV to 1.90 (#21987) 2025-12-15 14:29:11 +01:00
ruff_graph [ty] Teach ty the meaning of desperation (try ancestor pyproject.tomls as search-paths if module resolution fails) (#21745) 2025-12-03 15:04:36 -05:00
ruff_index
ruff_linter Report diagnostics for invalid/unmatched range suppression comments (#21908) 2025-12-18 12:58:58 -08:00
ruff_macros
ruff_memory_usage [ty] Enable LRU collection for parsed module (#21749) 2025-12-03 12:16:18 +01:00
ruff_notebook
ruff_options_metadata
ruff_python_ast [ty] Add support for attribute docstrings (#22036) 2025-12-18 12:18:20 +00:00
ruff_python_ast_integration_tests Add token based parenthesized_ranges implementation (#21738) 2025-12-03 08:15:17 +00:00
ruff_python_codegen Update MSRV to 1.90 (#21987) 2025-12-15 14:29:11 +01:00
ruff_python_formatter Fluent formatting of method chains (#21369) 2025-12-15 09:29:50 -06:00
ruff_python_importer Move Token, TokenKind and Tokens to ruff-python-ast (#21760) 2025-12-02 20:10:46 +01:00
ruff_python_index Move Token, TokenKind and Tokens to ruff-python-ast (#21760) 2025-12-02 20:10:46 +01:00
ruff_python_literal [pyupgrade] Fix parsing named Unicode escape sequences (UP032) (#21901) 2025-12-16 16:33:39 -05:00
ruff_python_parser [syntax-errors] Annotated name cannot be global (#20868) 2025-12-17 08:39:47 -05:00
ruff_python_semantic
ruff_python_stdlib [flake8-bugbear] Accept immutable slice default arguments (B008) (#21823) 2025-12-08 14:00:43 -05:00
ruff_python_trivia
ruff_python_trivia_integration_tests
ruff_server apply range suppressions to filter diagnostics (#21623) 2025-12-08 16:11:59 -08:00
ruff_source_file [ty] Correctly encode multiline tokens for clients not supporting multiline tokens (#22033) 2025-12-18 11:38:21 +00:00
ruff_text_size
ruff_wasm Bump 0.14.10 (#22058) 2025-12-18 13:08:17 -06:00
ruff_workspace
ty [ty] Disable possibly-missing-imports by default (#22041) 2025-12-18 20:06:34 +00:00
ty_combine
ty_completion_eval [ty] Don't suggest keyword statements when only expressions are valid 2025-12-18 12:27:57 -05:00
ty_ide [ty] Don't suggest keyword statements when only expressions are valid 2025-12-18 12:27:57 -05:00
ty_project [ty] Fix some configuration panics in the LSP (#22040) 2025-12-18 09:47:02 -05:00
ty_python_semantic [ty] Disable possibly-missing-imports by default (#22041) 2025-12-18 20:06:34 +00:00
ty_server [ty] Disable possibly-missing-imports by default (#22041) 2025-12-18 20:06:34 +00:00
ty_static [ty] Document TY_CONFIG_FILE (#22001) 2025-12-16 13:15:24 +01:00
ty_test [ty] Use datatest instead of dirtest (#21937) 2025-12-18 18:05:02 +00:00
ty_vendored [ty] Carry generic context through when converting class into Callable (#21798) 2025-12-05 08:57:21 -05:00
ty_wasm [ty] Fix some configuration panics in the LSP (#22040) 2025-12-18 09:47:02 -05:00