浏览代码

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 年之前
父节点
当前提交
d87dd6e779
共有 1 个文件被更改,包括 3 次插入0 次删除
  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