From 7b3295a4cc68cd3c14c208d388f384a7af16234f Mon Sep 17 00:00:00 2001 From: chentianyu03 Date: Tue, 17 Aug 2021 15:45:49 +0800 Subject: [PATCH] add exclude rules of pre-commit for paddle/utils and third_party (#34880) * add exclude rules of pre-commit to paddle/utils and third_party * remove exclude direction distributed/third_party * remove exclude of paddle/utils for format cpplint check --- .pre-commit-config.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc7e70619e3..df2e59b7647 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/.* + )$ -- GitLab