astral-sh / ruff

An extremely fast Python linter and code formatter, written in Rust.
https://docs.astral.sh/ruff
MIT License
32.9k stars 1.1k forks source link

Feature request: isort.float-to-top #1251

Open tlambert03 opened 1 year ago

tlambert03 commented 1 year ago

I have some code-autogeneration projects where isort's Float To Top feature is super useful. (as a reminder, it causes all non-indented imports to float to the top of the file)

Not sure how "invasive" this one is to implement here, but just wanted to put in a friendly feature request :)

thanks as always!

failable commented 3 months ago

Any update of this?

Yevgnen commented 3 months ago

I miss too much this conveient function to quickly import modules and move them to the top automatically since most open source Python LS do not perform well on auto importing. I would rather import it manually but move them by --float-to-top. It would be nice to have it in ruff too.