ruff/crates/ruff_python_formatter/src
Zanie Blue 999d88e773
Fix formatting of chained boolean operations (#6394)
Closes https://github.com/astral-sh/ruff/issues/6068

These commits are kind of a mess as I did some stumbling around here. 

Unrolls formatting of chained boolean operations to prevent nested
grouping which gives us Black-compatible formatting where each boolean
operation is on a new line.
2023-08-07 12:22:33 -05:00
..
comments Remove async AST node variants for with, for, and def (#6369) 2023-08-07 16:36:02 +00:00
expression Fix formatting of chained boolean operations (#6394) 2023-08-07 12:22:33 -05:00
module Add empty lines before nested functions and classes (#6206) 2023-08-01 15:30:59 +00:00
other Use parenthesized_with_dangling_comments in arguments formatter (#6376) 2023-08-07 09:43:57 -04:00
pattern Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
snapshots Remove exception-handler lexing from unused-bound-exception fix (#5851) 2023-07-18 18:27:46 +00:00
statement Remove async AST node variants for with, for, and def (#6369) 2023-08-07 16:36:02 +00:00
type_param Replace Formatter<PyFormatContext<'_>> with PyFormatter (#6330) 2023-08-04 10:48:58 +02:00
builders.rs Add formatter support for call and class definition Arguments (#6274) 2023-08-02 11:54:22 -04:00
cli.rs Formatter: Add SourceType to context to enable special formatting for stub files (#6331) 2023-08-04 11:52:26 +00:00
context.rs formatter: WithNodeLevel helper (#6212) 2023-07-31 21:22:17 +00:00
generated.rs Remove async AST node variants for with, for, and def (#6369) 2023-08-07 16:36:02 +00:00
lib.rs Formatter: Add SourceType to context to enable special formatting for stub files (#6331) 2023-08-04 11:52:26 +00:00
main.rs Formatter: Add SourceType to context to enable special formatting for stub files (#6331) 2023-08-04 11:52:26 +00:00
options.rs Formatter: Add SourceType to context to enable special formatting for stub files (#6331) 2023-08-04 11:52:26 +00:00
prelude.rs Accept any Into<AnyNodeRef> as Comments arguments (#5205) 2023-06-20 16:49:21 +00:00