ruff/crates
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
..
flake8_to_ruff Unify line size settings between ruff and the formatter (#6873) 2023-08-28 06:44:56 +00:00
ruff Fixed panic in missing_copyright_notice (#7029) 2023-09-01 13:58:48 +00:00
ruff_benchmark Add unicode benchmark (#7002) 2023-08-30 09:57:57 +02:00
ruff_cache Error on zero tab width (#6429) 2023-08-08 16:51:37 -04:00
ruff_cli Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
ruff_dev Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
ruff_diagnostics Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
ruff_formatter Update dynamic_text builder doc comment (#6978) 2023-08-29 16:29:11 +02:00
ruff_index Add unreachable code rule (#5384) 2023-07-04 14:27:23 +00:00
ruff_macros Move Configuration to ruff_workspace crate (#6920) 2023-08-28 06:21:35 +00:00
ruff_notebook Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
ruff_python_ast Fix WithItem ranges for parenthesized, non-as items (#6782) 2023-08-31 16:21:29 +01:00
ruff_python_codegen Make Parameters an optional field on ExprLambda (#6669) 2023-08-18 15:34:54 +00:00
ruff_python_formatter Fix placement for comments within f-strings concatenations (#7047) 2023-09-01 16:27:32 +00:00
ruff_python_index Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
ruff_python_literal Avoid parsing other parts of a format specification if replacements are present (#6858) 2023-08-25 17:42:57 +00:00
ruff_python_parser Fix WithItem ranges for parenthesized, non-as items (#6782) 2023-08-31 16:21:29 +01:00
ruff_python_resolver Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
ruff_python_semantic Move refurb/helpers utils to ruff_python_semantic for broader use (#6990) 2023-08-29 14:45:09 -04:00
ruff_python_stdlib Add TOML files to SourceType (#6929) 2023-08-28 15:01:48 +00:00
ruff_python_trivia Implement Ranged on more structs (#6921) 2023-08-27 19:03:08 +00:00
ruff_shrinking Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
ruff_source_file Fixed panic in missing_copyright_notice (#7029) 2023-09-01 13:58:48 +00:00
ruff_text_size Unify line size settings between ruff and the formatter (#6873) 2023-08-28 06:44:56 +00:00
ruff_wasm Add hidden --preview / --no-preview options to ruff check (#7009) 2023-08-31 09:51:59 -05:00
ruff_workspace Add hidden --preview / --no-preview options to ruff check (#7009) 2023-08-31 09:51:59 -05:00