ruff/crates/ruff_python_formatter/src/other
Micha Reiser a4b7c4ef70 [formatter] Stabilize fix for single-with-item formatting with trailing comment (#16603)
## Summary

This PR stabilizies the fix for
https://github.com/astral-sh/ruff/issues/14001

We try to only make breaking formatting changes once a year. However,
the plan was to release this fix as part of Ruff 0.9 but I somehow
missed it when promoting all other formatter changes.
I think it's worth making an exception here considering that this is a
bug fix, it improves readability, and it should be rare
(very few files in a single project). Our version policy explicitly
allows breaking formatter changes in any minor release and the idea of
only making breaking formatter changes once a year is mainly to avoid
multiple releases throughout the year that introduce large formatter
changes

Closes https://github.com/astral-sh/ruff/issues/14001

## Test Plan

Updated snapshot
2025-03-13 15:37:37 +01:00
..
alias.rs Avoid printing continuations within import identifiers (#7744) 2023-10-02 09:51:07 -04:00
arguments.rs Fix f-string formatting in assignment statement (#14454) 2024-11-26 15:07:18 +05:30
bytes_literal.rs Remove layout values from AnyStringPart (#13681) 2024-10-09 07:25:40 +01:00
commas.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30
comprehension.rs Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
decorator.rs Implement RUF028 to detect useless formatter suppression comments (#9899) 2024-02-28 19:21:06 +00:00
elif_else_clause.rs Insert empty line between suite and alternative branch after def/class (#12294) 2024-07-15 12:59:33 +02:00
except_handler_except_handler.rs Insert empty line between suite and alternative branch after def/class (#12294) 2024-07-15 12:59:33 +02:00
f_string.rs Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
f_string_element.rs Fix bracket spacing for single-element tuples in f-string expressions (#15537) 2025-01-17 08:02:34 +00:00
identifier.rs Range formatting: Fix invalid syntax after parenthesizing expression (#9751) 2024-02-02 17:56:25 +01:00
keyword.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
match_case.rs Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
mod.rs Remove FormatFStringPart (#14448) 2024-11-25 10:29:22 +05:30
parameter.rs Fix placement of inline parameter comments (#13379) 2024-09-18 08:26:06 +02:00
parameter_with_default.rs bump MSRV to 1.83 (#16294) 2025-02-26 06:12:43 -08:00
parameters.rs Remove AstNode and AnyNode (#15479) 2025-01-17 17:11:00 -05:00
string_literal.rs Ruff 2025 style guide (#13906) 2025-01-09 10:20:06 +01:00
with_item.rs [formatter] Stabilize fix for single-with-item formatting with trailing comment (#16603) 2025-03-13 15:37:37 +01:00