未验证 提交 db0ca7a5 编写于 作者: N Nyakku Shigure 提交者: GitHub

[CodeStyle] add pre-commit hook `remove-tabs` for cpp files (#46232)

* [CodeStyle] add pre-commit hook `remove-tabs` for cpp files

* empty commit, test=document_fix
上级 2aacc034
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册