alecthomas / importmagic

A Python library for finding unresolved symbols in Python code, and the corresponding imports
BSD 2-Clause "Simplified" License
120 stars 20 forks source link

Disable import reorder #43

Closed sivakov512 closed 7 years ago

sivakov512 commented 7 years ago

Hi!

When I do automatic import all imports in module will be automatically reordered. Can I change this behaviour?

(sorry for my bad english)

alecthomas commented 7 years ago

No, there is no way to disable import reordering.

sivakov512 commented 7 years ago

This feature can be implemented?

alecthomas commented 7 years ago

I think this would be fairly non-trivial to achieve, but I'd accept a PR that made it an option.