ruff/crates/ruff_python_formatter/tests
Dhruv Manilawala 541aef4e6c
Implement blank_line_after_nested_stub_class preview style (#9155)
## Summary

This PR implements the `blank_line_after_nested_stub_class` preview
style in the formatter.

The logic is divided into 3 parts:
1. In between preceding and following nodes at top level and nested
suite
2. When there's a trailing comment after the class
3. When there is no following node from (1) which is the case when it's
the last or the only node in a suite

We handle (3) with `FormatLeadingAlternateBranchComments`.

## Test Plan

- Add new test cases and update existing snapshots
- Checked the `typeshed` diff

fixes: #8891
2024-01-31 00:09:38 +05:30
..
snapshots Implement blank_line_after_nested_stub_class preview style (#9155) 2024-01-31 00:09:38 +05:30
fixtures.rs Show source-type in formatter snapshot tests with options (#9699) 2024-01-30 10:08:50 +00:00
normalizer.rs ruff_python_formatter: support reformatting Markdown code blocks (#9030) 2023-12-07 14:30:43 -05:00