mirror of https://github.com/astral-sh/ruff
## Summary This change adds an auto-fix for manual dict comprehensions. It also copies many of the improvements from #13919 (and associated PRs fixing issues with it), and moves some of the utility functions from `manual_list_comprehension.rs` into a separate `helpers.rs` to be used in both. ## Test Plan I added a preview test case to showcase the new fix and added a test case in `PERF403.py` to make sure lines with semicolons function. I didn't yet make similar tests to the ones I added earlier to `PERF401.py`, but the logic is the same, so it might be good to add those to make sure they work. |
||
|---|---|---|
| .. | ||
| ast | ||
| filesystem.rs | ||
| imports.rs | ||
| logical_lines.rs | ||
| mod.rs | ||
| noqa.rs | ||
| physical_lines.rs | ||
| tokens.rs | ||