Install elpa-py-autopep8 by entering the following commands in the terminal:
sudo apt update sudo apt install elpa-py-autopep8
Description:
use autopep8 to beautify a Python buffer
This package provides the `py-autopep8' command, which uses the external `autopep8' tool to tidy up the current buffer according to Python's PEP-8.
Homepage: https://github.com/paetzke/py-autopep8.el
Version: 2016.1-1
Section: universe/lisp