PyCQA / isort

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

Seemingly Incorrect Blender Import Sorting #2016

Open EuanHoll opened 1 year ago

EuanHoll commented 1 year ago

Hey,

So when importing blender packages there's a specific order

import bpy
import bmesh
import bpy_extras

It's bpy then any of the rest, however isort seemingly sorts them like so

import bmesh
import bpy
import bpy_extras

Which gives an import error.

andersk commented 1 year ago

You can set this up using the options described in Custom Sections and Ordering.