From 02380df70e6f9a03a2f1190a51d79d1d93a557c6 Mon Sep 17 00:00:00 2001 From: SigureMo Date: Sat, 24 Sep 2022 00:11:14 +0800 Subject: [PATCH] add comment --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af8a002d363abb..326507e6667007 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,8 +17,11 @@ repos: - id: remove-tabs files: (.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$ args: [--whitespaces-count, '4'] + # Exclude the fluid directory but keep the fluid/tests directory. + # And exclude some unit test files that require tabs. exclude: | (?x)^( + python/paddle/fluid/(?!.*tests).+| python/paddle/fluid/tests/unittests/collective/fleet/test_hdfs1.py| python/paddle/fluid/tests/unittests/dygraph_to_static/test_error.py )$