Prechádzať zdrojové kódy

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 1 rok pred
rodič
commit
d87dd6e779
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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
         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