ruff/crates/ruff_python_formatter/src
Charlie Marsh 6dbc6d2e59
Use shared Cursor across crates (#5715)
## Summary

We have two `Cursor` implementations. This PR moves the implementation
from the formatter into `ruff_python_whitespace` (kind of a poorly-named
crate now) and uses it for both use-cases.
2023-07-12 21:09:27 +00:00
..
comments Pass FormatContext to NeedsParentheses 2023-07-11 14:28:50 +02:00
expression Handle right parens in join comma builder (#5711) 2023-07-12 18:21:28 +02:00
module Format ModExpression (#5689) 2023-07-11 16:41:10 +02:00
other Improve comprehension line break beheavior 2023-07-11 16:51:24 +02:00
pattern Use dedicated structs in comparable.rs (#5042) 2023-06-13 03:57:34 +00:00
snapshots formatter: multi char tokens in SimpleTokenizer (#5610) 2023-07-10 09:00:59 +01:00
statement Handle right parens in join comma builder (#5711) 2023-07-12 18:21:28 +02:00
builders.rs Handle right parens in join comma builder (#5711) 2023-07-12 18:21:28 +02:00
cli.rs Create PyFormatOptions 2023-06-26 14:02:17 +02:00
context.rs Pass FormatContext to NeedsParentheses 2023-07-11 14:28:50 +02:00
generated.rs Run nightly Clippy over the Ruff repo (#5670) 2023-07-10 23:44:38 -04:00
lib.rs Only omit optinal parens if the expression ends or starts with a parenthesized expression 2023-07-11 17:05:25 +02:00
main.rs Add a formatter CLI for debugging (#4809) 2023-06-05 07:33:33 +00:00
options.rs Prefer the configured quote style 2023-06-26 14:24:25 +02:00
prelude.rs Accept any Into<AnyNodeRef> as Comments arguments (#5205) 2023-06-20 16:49:21 +00:00
trivia.rs Use shared Cursor across crates (#5715) 2023-07-12 21:09:27 +00:00