ruff/crates/ruff_python_trivia/src
Zanie Blue 3af3f74c66
Update dedent_to to support blocks that are composed of comments (#13572)
While looking into https://github.com/astral-sh/ruff/issues/13545 I
noticed that we return `None` here if you pass a block of comments. This
is annoying because it causes `adjust_indentation` to fall back to
LibCST which panics when it cannot find a statement.
2024-10-01 04:38:03 +00:00
..
comment_ranges.rs refactor: Return copied TextRange in CommentRanges iterator (#13281) 2024-09-08 13:17:37 +02:00
comments.rs Implement RUF028 to detect useless formatter suppression comments (#9899) 2024-02-28 19:21:06 +00:00
cursor.rs Mention that Cursor is based on rustc's implementation. (#12109) 2024-06-30 16:53:25 +01:00
lib.rs Implement RUF028 to detect useless formatter suppression comments (#9899) 2024-02-28 19:21:06 +00:00
pragmas.rs Extend pragma comment cases (#7687) 2023-09-28 18:55:19 +00: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 Fix placement of inline parameter comments (#13379) 2024-09-18 08:26:06 +02:00
whitespace.rs Remove cyclic dev dependency with the parser crate (#11261) 2024-05-07 09:24:57 +00:00