diff --git a/misc/hooks/pre-commit-clang-format b/misc/hooks/pre-commit-clang-format index e5cf0c4aa23d..eddbc593640e 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