From 32a624b041126a0cd0fb37e719f54e9c12046212 Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Tue, 5 Dec 2023 15:08:20 -0600 Subject: [PATCH] Add a pre-commit config to lint and correct style issues (#470) --- .pre-commit-config.yaml | 12 ++++++++++++ 1 file changed, 12 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 00000000..7acbdbe9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,12 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: trailing-whitespace + + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v17.0.2 + hooks: + - id: clang-format + types: + - c++