- The install_hook.py script installs a simple presubmit hook that wraps
another command.
- Add an --install option to Pigweed's presubmit that installs the
commit hook and exits.
Change-Id: I1b9296b103e0b94e1ff44cc5b274590f56f72831
- Organize pw_presubmit as a Python package.
- Move presubmit.py to into the package as pigweed_presubmit.py.
- Set up pigweed_presubmit.py to run whether the pw_presubmit package is
installed or not.
Change-Id: Id85937971d554332ab7d4adfd668eeafa6379976
- Use env_setup/virtualenv/init.py to setup the Python venv.
- Improve diff colorization.
- Add function for finding Python packages from .py file changes.
- Add check that runs Python tests.
- Enable full pylint and yapf as warnings.
- Delete unused code in watch.py that used an undefined variable.
- Enable required python -E check.
Change-Id: I5ba9882ea9ec93f006260d5636031dd0b5005a85
- Add format_cc.py, which simplifies using clang-format in presubmits by
checking for changes and printing a colorized diff.
- Add --continue option to presubmit_tools.py to continue running checks
after a failure.
- Add exclude option to filter_paths.
Change-Id: If17cf84b3e33550054a10f36df6403dada9005b4
- Run presubmits with presubmit_tools's parse_args_and_run_presubmit.
Running without arguments runs against the whole repo, as before.
- Move the call helper into presubmit_tools.py and expand it.
- Add gn_format and pylint presubmit checks.
- Add --check to gn invocation.
Change-Id: I5b20c2ccaac92d7550888aa2eed03043885e8502
pw_presubmit provides a presubmit runner and functions that can be
used to run presubmits in a Git repository.
Change-Id: I556bb6f7b70b66e5df0af7552f9ed41ce9ca08a0