Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pre-commit formatting of C++ files #1536

Merged
merged 2 commits into from
Sep 22, 2023
Merged

Conversation

bbannier
Copy link
Member

No description provided.

@bbannier bbannier self-assigned this Sep 22, 2023
@bbannier bbannier requested a review from rsmmr September 22, 2023 08:34
@bbannier bbannier marked this pull request as ready for review September 22, 2023 08:34
rsmmr
rsmmr previously approved these changes Sep 22, 2023
We would previously files which had _both_ `c` and `c++` types which
would only match much fewer files than intended (e.g., `.h` would be
classified that way).

With this patch we now use `types_or` which combines types with `OR`
like we originally intended.
The implementation of the `stray-baselines` hook relies on `btest`. We
would previously assume it was installed out of band which makes the
default pre-commit hooks cumbersome to use (e.g., opaque failure if
dependency missing).

This patch explicitly declares the Python dependency which then gets
managed by pre-commit. This should come with no new risk as we do not
rely on version-dependent BTest features in the hook.
@bbannier bbannier merged commit 063babf into main Sep 22, 2023
11 of 22 checks passed
@bbannier bbannier deleted the topic/bbannier/clang-format branch September 22, 2023 14:36
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.

2 participants