ruff/crates/ruff_python_formatter/src/comments
konstin 66089e1a2e
Fix a number of formatter errors from the cpython repository (#5089)
## Summary

This fixes a number of problems in the formatter that showed up with
various files in the [cpython](https://github.com/python/cpython)
repository. These problems surfaced as unstable formatting and invalid
code. This is not the entirety of problems discovered through cpython,
but a big enough chunk to separate it. Individual fixes are generally
individual commits. They were discovered with #5055, which i update as i
work through the output

## Test Plan

I added regression tests with links to cpython for each entry, except
for the two stubs that also got comment stubs since they'll be
implemented properly later.
2023-06-15 11:24:14 +00:00
..
snapshots Format Function definitions (#4951) 2023-06-08 16:07:33 +00:00
debug.rs Track formatted comments (#4979) 2023-06-09 09:09:45 +00:00
format.rs Track formatted comments (#4979) 2023-06-09 09:09:45 +00:00
map.rs Correctly associate own-line comments in bodies (#4671) 2023-06-01 08:12:53 +02:00
mod.rs Track formatted comments (#4979) 2023-06-09 09:09:45 +00:00
node_key.rs Correctly associate own-line comments in bodies (#4671) 2023-06-01 08:12:53 +02:00
placement.rs Fix a number of formatter errors from the cpython repository (#5089) 2023-06-15 11:24:14 +00:00
visitor.rs Run `rustfmt` on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00