ruff/crates/ruff_python_formatter/src
Luc Khai Hai e1c119fde3
Format SetComp (#5774)
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

Format `SetComp` like `ListComp`.

## Test Plan

Derived from `ListComp`'s fixture.
2023-07-15 15:50:47 +01:00
..
comments Pass FormatContext to NeedsParentheses 2023-07-11 14:28:50 +02:00
expression Format SetComp (#5774) 2023-07-15 15:50:47 +01:00
module Format ModExpression (#5689) 2023-07-11 16:41:10 +02:00
other Pass parent to NeedsParentheses (#5708) 2023-07-13 08:57:29 +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 Cover Black's is_aritmetic_like formatting (#5738) 2023-07-14 17:54:58 +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 Cover Black's is_aritmetic_like formatting (#5738) 2023-07-14 17:54:58 +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