diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 50a630686aba02591371d0cd26d563e768ef0a3d..768f0222f55670332f05d2c899e6cb5ee22f1d98 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,7 @@ +exclude: | + (?x)^( + patches/.+ + )$ repos: - repo: https://github.com/Lucas-C/pre-commit-hooks.git rev: v1.1.14 @@ -26,7 +30,7 @@ repos: - id: sort-simple-yaml files: (op|backward|op_[a-z_]+)\.yaml$ - id: trailing-whitespace - files: (.*\.(py|bzl|md|rst|c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps|cmake)|BUILD|.*\.BUILD|WORKSPACE|CMakeLists.txt)$ + files: (.*\.(py|bzl|md|rst|c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps|cmake|yaml|yml|hook)|BUILD|.*\.BUILD|WORKSPACE|CMakeLists\.txt)$ - repo: local hooks: - id: clang-format