Skip to content

Sort only the import types without rearranging the lines #12310

Answered by MichaReiser
Alc-Alc asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the detailed explanation. That helped!

I assume that this exception only applies to a few imports? If so, you can tell Ruff to not sort a specific import by using isort: skip

https://docs.astral.sh/ruff/linter/#action-comments

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Alc-Alc
Comment options

@MichaReiser
Comment options

Answer selected by Alc-Alc
@Alc-Alc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants