ruff/crates/ruff_python_formatter/src/statement
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
..
mod.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_ann_assign.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_assert.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_assign.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_async_for.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_async_function_def.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_async_with.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_aug_assign.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_break.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_class_def.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_continue.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_delete.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_expr.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_for.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_function_def.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_global.rs Add global and nonlocal formatting (#6170) 2023-07-29 14:39:42 +00:00
stmt_if.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_import.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_import_from.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_match.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_nonlocal.rs Add global and nonlocal formatting (#6170) 2023-07-29 14:39:42 +00:00
stmt_pass.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_raise.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_return.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_try.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_try_star.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_type_alias.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_while.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
stmt_with.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
suite.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00