clone this. Run isort - no change. Make a worktree:
$ git worktree add ../second_tree
$ cat a.py
import sys
import c
import b
import a
Run isort form worktree and cat
$ cd ../second_tree
$ isort .
$ cat a.py
import sys
import b
import c
import a
The custom sectioning is ignored.