ruff/crates/ruff_python_formatter/src
Charlie Marsh 76741cac77
Add `global` and `nonlocal` formatting (#6170)
## Summary

Adds `global` and `nonlocal` formatting, without the "deviation from
black" outlined in the linked issue, which I'll do separately.

See: https://github.com/astral-sh/ruff/issues/4798.

## Test Plan

Added a fixture in the Ruff-specific directory since the Black fixtures
don't seem to cover this.
2023-07-29 14:39:42 +00:00
..
comments Ignore end-of-line file exemption comments (#6160) 2023-07-29 00:40:32 +00:00
expression Remove parentheses around some walrus operators (#6173) 2023-07-29 10:06:26 -04:00
module Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
other Unbreak main (#6123) 2023-07-27 10:22:13 -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 Add `global` and `nonlocal` formatting (#6170) 2023-07-29 14:39:42 +00:00
builders.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
cli.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
context.rs Remove parser dependency from ruff-python-ast (#6096) 2023-07-26 17:47:22 +02:00
generated.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
lib.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00: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