v 2.0.4 Updated: 6 months ago
A tool that automatically formats Python code to conform to the PEP 8 style guide
autopep8 automatically formats Python code to conform to the PEP 8 style guide. It uses the pycodestyle utility to determine what parts of the code needs to be formatted. autopep8 is capable of fixing most of the formatting issues that can be reported by pycodestyle.
To install py39-autopep8, paste this in macOS terminal after installing MacPorts
sudo port install py39-autopep8