| # See CONTRIBUTING.md for instructions. | |
| # See https://pre-commit.com for more information | |
| # See https://pre-commit.com/hooks.html for more hooks | |
| repos: | |
| - repo: https://github.com/keith/pre-commit-buildifier | |
| rev: 4.0.1.1 | |
| hooks: | |
| - id: buildifier | |
| args: &args | |
| # Keep this argument in sync with .bazelci/presubmit.yml | |
| - --warnings=-bzl-visibility,-function-docstring-args,-function-docstring-return,-print,-unnamed-macro,-provider-params,-function-docstring-header,-no-effect,-uninitialized,-rule-impl-return | |
| - id: buildifier-lint | |
| args: *args |