Skip to content

Conversation

@hofbi
Copy link
Contributor

@hofbi hofbi commented Jul 25, 2025

Replace the buildifier CI call with the pre-commit hook. Now developers can run exactly the same formatting and linting as we use in CI

Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think adding a pre-commit hook is fine but I don't think we should disable the CI check otherwise folks thinks could be missed by folks who didn't run the pre-commit hook. Can you re-enable that in this change?

@hofbi
Copy link
Contributor Author

hofbi commented Jul 26, 2025

Thanks! I think adding a pre-commit hook is fine but I don't think we should disable the CI check otherwise folks thinks could be missed by folks who didn't run the pre-commit hook. Can you re-enable that in this change?

Buildifier is still running in CI as part of pre-commit. If you scroll down to the end of the CI job you can see the pre-commit run --all-files. This will make sure that all formatters we maintain in pre-commit are also executed in CI.

If you look at the CI logs of this branch, you can see that buildifier is still executed.

Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me!

@hofbi
Copy link
Contributor Author

hofbi commented Jul 28, 2025

@UebelAndre PTAL

@UebelAndre UebelAndre added this pull request to the merge queue Aug 1, 2025
Merged via the queue into bazelbuild:main with commit c7d8b15 Aug 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants