diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc7e70619e3be11b3a31c43a30b1125d41d9fd2e..df2e59b7647bf0231362a4220e8610f50243f1c5 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,4 +49,7 @@ repos: entry: python ./tools/codestyle/copyright.hook language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py|sh)$ - exclude: (?!.*third_party)^.*$ | (?!.*book)^.*$ + exclude: | + (?x)^( + paddle/utils/.* + )$