Install elpa-py-isort by entering the following commands in the terminal:
sudo apt update sudo apt install elpa-py-isort
Description:
use isort to sort the imports in a Python buffer
Provides commands, which use the external `isort' tool to tidy up the imports in the current buffer or currently selected region. The behaviour of `isort' can be changed with the help of `py-isort-options' declaration.
Homepage: https://github.com/paetzke/py-isort.el
Version: 2016.1-2
Section: universe/lisp