ruff/crates/ruff_linter/resources/test/fixtures/perflint
w0nder1ng 08221454f6
[perflint] Implement fix for manual-dict-comprehension (PERF403) (#16719)
## 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.
2025-04-18 13:10:40 -04:00
..
PERF101.py Improve handling of builtin symbols in linter rules (#10919) 2024-04-16 11:37:31 +01:00
PERF102.py Add padding in PERF102 fixes (#7554) 2023-09-20 19:33:54 -04:00
PERF203.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
PERF401.py [perflint] Parenthesize walrus expressions in autofix for manual-list-comprehension (PERF401) (#15050) 2024-12-19 06:56:45 -06:00
PERF402.py Ignore list-copy recommendations for async for loops (#11250) 2024-05-02 11:48:52 -07:00
PERF403.py [perflint] Implement fix for manual-dict-comprehension (PERF403) (#16719) 2025-04-18 13:10:40 -04:00