Explorar o código

Merge pull request #87000 from akx/pre-commit-clang-format-ignore-fix

Add `tests/python_build` to clang-format pre-commit hook ignore list
Rémi Verschelde hai 1 ano
pai
achega
d87dd6e779
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      misc/hooks/pre-commit-clang-format

+ 3 - 0
misc/hooks/pre-commit-clang-format

@@ -140,6 +140,9 @@ do
     if grep -q "\-so_wrap." <<< $file; then
     if grep -q "\-so_wrap." <<< $file; then
         continue;
         continue;
     fi
     fi
+    if grep -q "tests/python_build" <<< $file; then
+          continue;
+    fi
 
 
     # ignore file if we do check for file extensions and the file
     # ignore file if we do check for file extensions and the file
     # does not match any of the extensions specified in $FILE_EXTS
     # does not match any of the extensions specified in $FILE_EXTS