ruff/crates/ruff_python_trivia/src
Micha Reiser b3b900dc1e
Treat `ty: ` comments as pragma comments (#18532)
## Summary

Add support for ty's `ty:` pragma comments to ruff's formatter and E501

Fixes https://github.com/astral-sh/ruff/issues/18529

## Test Plan

Added test
2025-06-07 16:02:43 +02:00
..
comment_ranges.rs Extract `LineIndex` independent methods from `Locator` (#13938) 2024-10-28 07:53:41 +00:00
comments.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
cursor.rs Add `offset` method to `ruff_python_trivia::Cursor` (#18371) 2025-05-29 16:08:15 +01:00
lib.rs Implement RUF028 to detect useless formatter suppression comments (#9899) 2024-02-28 19:21:06 +00:00
pragmas.rs Treat `ty: ` comments as pragma comments (#18532) 2025-06-07 16:02:43 +02:00
textwrap.rs Update `dedent_to` to support blocks that are composed of comments (#13572) 2024-10-01 04:38:03 +00:00
tokenizer.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
whitespace.rs Extract `LineIndex` independent methods from `Locator` (#13938) 2024-10-28 07:53:41 +00:00