google / yapf

A formatter for Python files
Apache License 2.0
13.75k stars 888 forks source link

pre-commit: Add hook for yapf-diff #1244

Closed avalanche-pwn closed 2 days ago

avalanche-pwn commented 2 days ago

This pull request adds a pre-commit hook for yapf-diff. The hook executes yapf-diff whenever a commit is about to be made and applies the resulting diff. Additionally it displays the diff so that the changes could be easily reviewed manually.

google-cla[bot] commented 2 days ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.