From de7133ee07d43aa3076076611bbad57638465a39 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 9 Jan 2024 14:40:31 +0200 Subject: [PATCH] Add tests/python_build to clang-format pre-commit hook ignore list It had been ignored by misc/scripts/clang_format.sh since 388d35b74d8919b251faae9e24af50476f12b1a2 but not the hook. --- misc/hooks/pre-commit-clang-format | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/hooks/pre-commit-clang-format b/misc/hooks/pre-commit-clang-format index e5cf0c4aa23..eddbc593640 100755 --- a/misc/hooks/pre-commit-clang-format +++ b/misc/hooks/pre-commit-clang-format @@ -140,6 +140,9 @@ do if grep -q "\-so_wrap." <<< $file; then continue; fi + if grep -q "tests/python_build" <<< $file; then + continue; + fi # ignore file if we do check for file extensions and the file # does not match any of the extensions specified in $FILE_EXTS