yapf

Formatter for Python code that makes code conform to PEP 8 style

brewmacoslinux
Try with needOr install directly
Source

About

Formatter for python code

Commands

yapf

Examples

Format a Python file in-place$ yapf -i script.py
Format a file and display the output without modifying$ yapf script.py
Format an entire directory recursively$ yapf -r -i /path/to/python/project