| # 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: 6.0.0 |
| 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: 22.8.0 |
| hooks: |
| - id: black |