autopep8

Automatically formats Python code to conform to PEP 8

brewmacoslinux
Try with needOr install directly
Source

About

Automatically formats Python code to conform to the PEP 8 style guide

Commands

autopep8

Examples

Format a single Python file and display the changes$ autopep8 script.py
Format a file in-place, modifying it directly$ autopep8 --in-place script.py
Format all Python files in a directory recursively$ autopep8 --in-place --recursive .