ruff/crates/ruff_python_formatter/src
Charlie Marsh ba71772d93
Parenthesize breaking named expressions in match guards (#9396)
## Summary

This is an attempt to solve
https://github.com/astral-sh/ruff/issues/9394 by avoiding breaks in
named expressions when invalid.
2024-01-08 14:47:01 +00:00
..
comments Allow `# fmt: skip` with interspersed same-line comments (#9395) 2024-01-04 19:39:37 -05:00
expression Parenthesize breaking named expressions in match guards (#9396) 2024-01-08 14:47:01 +00:00
module Attach dangling comments to the comprehension instead of the `if` or `iter` nodes (#7693) 2023-09-29 10:45:01 +01:00
other Normalise Hex and unicode escape sequences in string (#9280) 2023-12-28 09:06:58 +08:00
pattern New `Singleton` enum for `PatternMatchSingleton` node (#8063) 2023-10-30 05:48:53 +00:00
snapshots Remove exception-handler lexing from `unused-bound-exception` fix (#5851) 2023-07-18 18:27:46 +00:00
statement Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
string Fix typos found by codespell (#9346) 2024-01-02 02:08:15 +00:00
type_param Don't move type param opening parenthesis comment (#8163) 2023-10-24 12:02:27 +00:00
builders.rs Implement multiline dictionary and list hugging for preview style (#8293) 2023-11-30 21:11:14 -05:00
cli.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
context.rs Split string formatting to individual nodes (#9058) 2023-12-14 12:55:10 -06:00
generated.rs Split string formatting to individual nodes (#9058) 2023-12-14 12:55:10 -06:00
lib.rs Add row and column numbers to formatted parse errors (#9321) 2023-12-31 07:10:45 -05:00
main.rs Formatter and parser refactoring (#7569) 2023-09-26 15:29:43 +02:00
options.rs Add `target_version` to formatter options (#9220) 2023-12-21 04:05:58 +00:00
prelude.rs Accept any `Into<AnyNodeRef>` as `Comments` arguments (#5205) 2023-06-20 16:49:21 +00:00
preview.rs Normalise Hex and unicode escape sequences in string (#9280) 2023-12-28 09:06:58 +08:00
shared_traits.rs ruff_python_formatter: copy and inline shared traits (#8656) 2023-11-13 12:16:04 -05:00
verbatim.rs Preserve trailing semicolons when using `fmt: off` (#8275) 2023-10-30 00:22:34 +00:00