I am using the isort library to automatically sort my Python imports, but I'm experiencing an issue with the ordering of the imports. Specifically, isort is grouping my local imports (e.g., from test.my_module import MyClass) with the standard library imports (e.g., import os) instead of with the other local imports (e.g., from my_app.my_module import MyOtherClass).
For example, the current ordering produced by isort is:
import os
from test.my_module import MyClass
from flask import Flask
from my_app.my_module import MyOtherClass
But as far as I understand the order should be like so:
import os
from flask import Flask
from my_app.my_module import MyOtherClass
from test.my_module import MyClass
I am using the isort library to automatically sort my Python imports, but I'm experiencing an issue with the ordering of the imports. Specifically, isort is grouping my local imports (e.g., from test.my_module import MyClass) with the standard library imports (e.g., import os) instead of with the other local imports (e.g., from my_app.my_module import MyOtherClass).
For example, the current ordering produced by isort is:
But as far as I understand the order should be like so: