| # First [install pre-commit](https://pre-commit.com/#installation), | |
| # then run | |
| # pre-commit install | |
| # See https://pre-commit.com for more information | |
| # See https://pre-commit.com/hooks.html for more hooks | |
| repos: | |
| # Check formatting and lint for starlark code | |
| - repo: https://github.com/keith/pre-commit-buildifier | |
| rev: 6.3.3 | |
| hooks: | |
| - id: buildifier | |
| - id: buildifier-lint |