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.
Every Python developer knows some or all of these libraries, because they’re stable, reliable, and excellent at what they do.