From 17cf218cdf9849dc41eae467a76bafa0b6d11f02 Mon Sep 17 00:00:00 2001 From: Matthew Abruzzo Date: Wed, 3 Jul 2024 14:30:29 -0400 Subject: [PATCH] introduce pre-commit configuration with clang-format --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..0a1ef3524 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,15 @@ +ci: + autofix_prs: false + + +repos: +- repo: https://github.com/pre-commit/mirrors-clang-format + # unlike most pre-commit tools, the version of this repository exactly + # matches the version of clang-format + rev: v17.0.1 + hooks: + - id: clang-format + verbose: true + types_or: [c++, c, cuda] + args: ["-style=file", "--verbose"] +