Download the formatter and run it with: To reformat changed lines in a specific patch, use google-java-format-diff.py. Note: There is no configurability as to the formatter's algorithm for formatting.
Visualize your Python code while you type it in PyCharm, Emacs, Sublime Text, or even your browser. Live coding tightens the feedback loop between making a change to your code and seeing the behaviour ...