commit | 31e0e81c1bcdbf082c91eff9ad16828aadd08df3 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Mon Nov 04 20:06:08 2019 -0800 |
committer | chrome-bot <chrome-bot@chromium.org> | Sat Nov 09 19:14:44 2019 -0800 |
tree | d73830987416bc700caac7cdfd193f31784a5386 | |
parent | fe8a44aa39ab93632e976b4aa5d00013601cdbc2 [diff] |
githooks: overhaul presubmit checks; automatically apply fixes This CL rewrites our githooks in Python, since bash makes this moderately ugly. The Killer Feature(TM) here is that we now also try to execute the commands that we recommend the user to run. This makes fixing many "yapf disagrees with you" / "you're missing a #!"-style messages as simple as `git commit --amend -a`. Note that these fixes are only auto-applied if your current repo is clean. BUG=None TEST=Various broken and configs in and outside of the chroot. I was also able to `repo upload` with it. :) Change-Id: Id841fa02271c0d03debbf35681eba8151074672e Reviewed-on: https://chromium-review.googlesource.com/1897253 Tested-by: George Burgess <gbiv@chromium.org> Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Denis Nikitin <denik@chromium.org>
toolchain-utils
Various utilities used by the Chrome OS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help
, or refer to the header of the script for more information.