ruff/crates/ruff_python_formatter/src/statement
konsti b7794f855b
Format StmtAugAssign (#5655)
## Summary

Format statements such as `tree_depth += 1`. This is a statement that
does not allow any line breaks, the only thing to be mindful of is to
parenthesize the assigned expression

Jaccard index on django: 0.915 -> 0.918

## Test Plan

black tests, and two new tests, a basic one and one that ensures that
the child gets parentheses. I ran the django stability check.
2023-07-11 09:06:23 +02:00
..
mod.rs Run nightly Clippy over the Ruff repo (#5670) 2023-07-10 23:44:38 -04:00
stmt_ann_assign.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
stmt_assert.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
stmt_assign.rs Remove prelude from ruff_python_ast (#5369) 2023-06-26 11:43:49 -04:00
stmt_async_for.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
stmt_async_function_def.rs Format Function definitions (#4951) 2023-06-08 16:07:33 +00:00
stmt_async_with.rs format StmtAsyncWith (#5376) 2023-06-28 10:21:44 +00:00
stmt_aug_assign.rs Format StmtAugAssign (#5655) 2023-07-11 09:06:23 +02:00
stmt_break.rs format StmtBreak (#5158) 2023-06-17 10:31:29 +02:00
stmt_class_def.rs Add JoinCommaSeparatedBuilder (#5342) 2023-06-23 22:03:05 +01:00
stmt_continue.rs Format continue statement (#5165) 2023-06-18 11:25:59 +00:00
stmt_delete.rs Format delete statement (#5169) 2023-07-11 08:36:26 +02:00
stmt_expr.rs Format implicit string continuation (#5328) 2023-06-26 12:41:47 +00:00
stmt_for.rs Format StmtFor (#5163) 2023-06-21 23:00:31 +02:00
stmt_function_def.rs Run nightly Clippy over the Ruff repo (#5670) 2023-07-10 23:44:38 -04:00
stmt_global.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
stmt_if.rs Consistently name comment own line/end-of-line line_position() (#5215) 2023-06-21 11:04:56 +02:00
stmt_import.rs Format import statements (#5493) 2023-07-04 07:07:20 +00:00
stmt_import_from.rs Format import statements (#5493) 2023-07-04 07:07:20 +00:00
stmt_match.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
stmt_nonlocal.rs Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
stmt_pass.rs Implement StmtPass (#4959) 2023-06-08 16:29:27 +02:00
stmt_raise.rs Format raise statement (#5595) 2023-07-10 21:23:49 +02:00
stmt_return.rs Implement StmtReturn (#4960) 2023-06-08 16:29:39 +02:00
stmt_try.rs format StmtTryStar (#5418) 2023-06-29 08:07:33 +02:00
stmt_try_star.rs format StmtTryStar (#5418) 2023-06-29 08:07:33 +02:00
stmt_while.rs Consistently name comment own line/end-of-line line_position() (#5215) 2023-06-21 11:04:56 +02:00
stmt_with.rs format StmtAsyncWith (#5376) 2023-06-28 10:21:44 +00:00
suite.rs Format let-else with rustfmt nightly (#5461) 2023-07-03 02:13:35 +00:00