[`perflint`] implement quick-fix for `manual-list-comprehension` (`PERF401`) #13919
implement quick fix for manual list comprehensions
98c14e3a
convert into list comprehension when the variable is an empty list li…
d89950f9
update tests and only offer fix when binding is a single assignment
f3867eee
update test output
13592b4d
fix false negative when binding statement did not exist
27f8ba8e
use slice instead of .name()
0aece9cc
w0nder1ng
changed the title [`PERF401`] implement quick-fix for `manual-list-comprehension` (`PERF401`) [`perflint`] implement quick-fix for `manual-list-comprehension` (`PERF401`) 1 year ago
modify fix to preserve comments
1f7f4c0e
modify fix to use direct string modification instead of generation
499bdcad
use LineRanges trait
158b2e2f
update snapshot
4d441c36
remove leftover indentation from for loop
5dbc7646
uncomment preview gate
a3b42e69
add preview test case
aa36f1b6
change fix to FixAvailability::Sometimes
0078d628
uncomment LineRanges import
9aa56270
fix nits and improve diagnostic message
64f0f568
Merge branch 'main' into perf401
d89c6343
add missing comma
bfa0971e
change format! to .to_string()
19542678
Use improved message in stable and preview
37e1e81f
don't try to insert a comment when comments are empty
fdfcc811
Merge branch 'perf401' of https://github.com/w0nder1ng/ruff into perf401
e91b2d6f
update test output
2d093814
improve empty comment handling
95644439
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub