build: set up code formatting
We now use rules_lint
to format code consistently.
It's encouraged that developers install the Git hooks locally, which will check code formatting before a commit:
bazelisk run //tools/git/hooks:install
If the check fails, format the code with:
bazelisk run //tools/format
As a fallback, the CI pipeline will fail if code isn't formatted properly.
Edited by Alex Tercete