autopep8
autopep8 copied to clipboard
Is there any tool that autoformats multiple "from" imports according to PEP E401?
I'm surprised that no tool seems to regard this code as bad, since it makes git unnecessary conflicts:
from A import alpha, beta
This will create manual git conflicts for anyone changing the import.
Is there any tool that autoformats above code to:
from A import (alpha,
beta)
Thanks for any tips
I wrote reorder-python-imports -- there's also settings for isort
to do this