ruff
d9028a09 - [`isort`] Insert imports in alphabetical order (`I002`) (#22493)

Commit
35 days ago
[`isort`] Insert imports in alphabetical order (`I002`) (#22493) <!-- Thank you for contributing to Ruff/ty! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? (Please prefix with `[ty]` for ty pull requests.) - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> This PR fixes #20811 , current approach reverses the order in `BtreeSet` however as pointed in https://github.com/astral-sh/ruff/issues/20811#issuecomment-3398958832 here we cannot use I`IndexSet` to preserve config order since Settings derives `CacheKey` which isn't implemented for `IndexSet`, another approach to preserve the original order might be to use `Vec` however lookup time complexity might get affected as a result. <!-- How was it tested? --> I have tested it locally its working as expected , <img width="2200" height="1071" alt="image" src="https://github.com/user-attachments/assets/7d97b488-1552-4a42-9d90-92acf55ec493" /> --------- Signed-off-by: Bhuminjay <bhuminjaysoni@gmail.com>
Author
Parents
Loading