ruff/crates/ruff_python_formatter/resources/test/fixtures/ruff
Charlie Marsh dea65536e9
Fix placement for comments within f-strings concatenations (#7047)
## Summary

Restores the dangling comment handling for f-strings, which broke with
the parenthesized expression code.

Closes https://github.com/astral-sh/ruff/issues/6898.

## Test Plan

`cargo test`

No change in any of the similarity indexes or changed file counts:

| project | similarity index | total files | changed files |

|--------------|------------------:|------------------:|------------------:|
| cpython | 0.76083 | 1789 | 1632 |
| django | 0.99957 | 2760 | 67 |
| transformers | 0.99927 | 2587 | 468 |
| twine | 0.99982 | 33 | 1 |
| typeshed | 0.99978 | 3496 | 2173 |
| warehouse | 0.99818 | 648 | 24 |
| zulip | 0.99942 | 1437 | 32 |
2023-09-01 16:27:32 +00:00
..
carriage_return Normalize '\r' in string literals to '\n' 2023-06-30 10:13:23 +02:00
expression Fix placement for comments within f-strings concatenations (#7047) 2023-09-01 16:27:32 +00:00
fmt_on_off Treat empty-line separated comments as trailing statement comments (#6999) 2023-08-31 20:55:05 +00:00
fmt_skip Fix `fmt:skip` for function with return type (#6733) 2023-08-21 17:45:23 +02:00
parentheses Add general support for parenthesized comments on expressions (#6485) 2023-08-15 18:59:18 +00:00
statement Unset `after_class_docstring` state on every iteration (#7001) 2023-08-30 08:20:28 +02:00
.editorconfig Indent statements in suppressed ranges (#6507) 2023-08-15 08:00:35 +02:00
docstring.options.json Add tab width option (#6848) 2023-08-26 12:29:58 +02:00
docstring.py Format docstrings (#6452) 2023-08-14 12:28:58 +00:00
newlines.py Treat empty-line separated comments as trailing statement comments (#6999) 2023-08-31 20:55:05 +00:00
skip_magic_trailing_comma.options.json Add tests for skip magic trailing comma 2023-06-26 14:15:55 +02:00
skip_magic_trailing_comma.py Improve `with` statement comment handling and expression breaking (#6621) 2023-08-18 03:30:38 +00:00
tab_width.options.json Add tab width option (#6848) 2023-08-26 12:29:58 +02:00
tab_width.py Add tab width option (#6848) 2023-08-26 12:29:58 +02:00
trailing_comments.py Exclude pragma comments from measured line width (#7008) 2023-09-01 06:34:51 +00:00
trivia.py Correctly handle newlines after/before comments (#4895) 2023-06-07 14:49:43 +02:00