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

[CodeStyle] trailing whitespace hook for .hook and .yaml (#46081)

* adjust pre-commit config

* incremental trailing whitespace

* revert python increment, fix in #46080

* add .yaml and .hook suffix to pre-commit config, test=document_fix

* add yml suffix
上级 95c659f0
exclude: |
(?x)^(
patches/.+
)$
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
rev: v1.1.14
......@@ -26,7 +30,7 @@ repos:
- id: sort-simple-yaml
files: (op|backward|op_[a-z_]+)\.yaml$
- id: trailing-whitespace
files: (.*\.(py|bzl|md|rst|c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps|cmake)|BUILD|.*\.BUILD|WORKSPACE|CMakeLists.txt)$
files: (.*\.(py|bzl|md|rst|c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps|cmake|yaml|yml|hook)|BUILD|.*\.BUILD|WORKSPACE|CMakeLists\.txt)$
- repo: local
hooks:
- id: clang-format
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册