GitHub - google/yapf: A formatter for Python files
github.com › google › yapfNormally YAPF returns zero on successful program termination and non-zero otherwise. If --diff is supplied, YAPF returns zero when no changes were necessary, non-zero otherwise (including program error). You can use this in a CI workflow to test that code has been YAPF-formatted. Excluding files from formatting (.yapfignore or pyproject.toml)
yapf · PyPI
pypi.org › project › yapfDec 25, 2021 · Normally YAPF returns zero on successful program termination and non-zero otherwise. If --diff is supplied, YAPF returns zero when no changes were necessary, non-zero otherwise (including program error). You can use this in a CI workflow to test that code has been YAPF-formatted. Excluding files from formatting (.yapfignore or pyproject.toml)
yapf · PyPI
https://pypi.org/project/yapf25.12.2021 · YAPF takes a different approach. It’s based off of ‘clang-format’, developed by Daniel Jasper. In essence, the algorithm takes the code and reformats it to the best formatting that conforms to the style guide, even if the original code didn’t violate the style guide.