diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c27c1fa0a3b9217f8b03064cf3083a8a5c36e483..c97d38d30405ebc08e2fd13f096ed2323e72fbfd 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,17 @@ exclude: | (?x)^( - patches/.+ + patches/.+| + paddle/fluid/framework/fleet/heter_ps/cudf/.+| + paddle/fluid/distributed/ps/thirdparty/round_robin.h )$ repos: - repo: https://github.com/Lucas-C/pre-commit-hooks.git rev: v1.1.14 hooks: - id: remove-crlf + - id: remove-tabs + files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps)$ + args: [--whitespaces-count, '2'] - repo: https://github.com/google/yapf rev: v0.32.0 hooks: @@ -37,10 +42,6 @@ repos: entry: bash ./tools/codestyle/clang_format.hook -i language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps)$ - exclude: | - (?x)^( - paddle/fluid/distributed/ps/thirdparty/round_robin.h - )$ - repo: local hooks: - id: cpplint-cpp-source