Comment Comment by evilsnoopi3 We use isort[0] for this. It even has a "black" compatible profile that line spits along black's defaults. Additionally we use autoflake[1] to remove unused import statements in place.[0](https://github.com/PyCQA/isort)[1](https://github.com/PyCQA/autoflake) parent evilsnoopi3 4 years ago
[0](https://github.com/PyCQA/isort)
[1](https://github.com/PyCQA/autoflake)