| # 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.yaml | |
| - --warnings=all | |
| - id: buildifier-lint | |
| args: *args | |
| - repo: https://github.com/pycqa/isort | |
| rev: 5.10.1 | |
| hooks: | |
| - id: isort | |
| name: isort (python) | |
| args: | |
| - --profile | |
| - black | |
| - repo: https://github.com/psf/black | |
| rev: 21.12b0 | |
| hooks: | |
| - id: black |