PyCQA / isort

A Python utility / library to sort imports.
https://pycqa.github.io/isort/
MIT License
6.53k stars 583 forks source link

Setting for absolute/relative imports order #2155

Open catvitalio opened 1 year ago

catvitalio commented 1 year ago

I would like to have a setting so that isort sorts local imports in that order:

  1. Absolute imports.
  2. relative imports.

I have not found a solution in the documentation. Maybe I just didn't notice it?

What isort do: image

What i want:

Screenshot 2023-07-11 at 21 32 41