@@ -43,8 +43,8 @@ Tabs remover (C++).......................................................Passed
43
43
Tabs remover (Python)................................(no files to check)Skipped
44
44
copyright_checker........................................................Passed
45
45
typos....................................................................Passed
46
- black..... ...........................................(no files to check)Skipped
47
- ruff....... ..........................................(no files to check)Skipped
46
+ ruff check ...........................................(no files to check)Skipped
47
+ ruff format ..........................................(no files to check)Skipped
48
48
clang-format.............................................................Failed
49
49
- hook id: clang-format
50
50
- files were modified by this hook
@@ -53,6 +53,8 @@ clang-tidy...............................................................Passed
53
53
auto-generate-cmakelists.............................(no files to check)Skipped
54
54
cmake-format.........................................(no files to check)Skipped
55
55
CMake Lint...........................................(no files to check)Skipped
56
+ yamlfmt..................................................................Passed
57
+ sort-txt-file........................................(no files to check)Skipped
56
58
➜ git diff
57
59
diff --git a/paddle/phi/kernels/abs_kernel.h b/paddle/phi/kernels/abs_kernel.h
58
60
index 7e06204845..c1b803b44f 100644
@@ -85,13 +87,13 @@ Date: xxx
85
87
| [Lucas-C/pre-commit-hooks](https://github.com/Lucas-C/pre-commit-hooks.git) | 社区维护的一些通用的 hook,含将 CRLF 改为 LF、移除 Tab 等 hook | 1.5.1 |
86
88
| [copyright_checker](https://github.com/PaddlePaddle/Paddle/blob/develop/tools/codestyle/copyright.hook) | Copyright 检查 | 本地脚本 |
87
89
| [typos](https://github.com/crate-ci/typos) | 拼写错误检查 | 1.30.2 |
88
- | [black](https://github.com/psf/black) | Python 代码格式化 | 25.1.0 |
89
90
| [ruff](https://github.com/astral-sh/ruff) | Python 代码风格检查 | 0.12.0 |
90
91
| [clang-format](https://github.com/llvm/llvm-project/tree/main/clang/tools/clang-format) | C++ 代码格式化 | 13.0.0 |
91
92
| [cpplint](https://github.com/cpplint/cpplint) | C++ 代码风格检查 | 1.6.0 |
92
93
| [clang-tidy](https://github.com/llvm/llvm-project/tree/main/clang-tools-extra/clang-tidy) | C++ 代码风格检查 | 15.0.2.1 |
93
94
| [cmake-format](https://github.com/cheshirekow/cmake-format-precommit) | CMake 代码格式化 | 0.6.13 |
94
95
| [cmake-lint](https://github.com/PFCCLab/cmake-lint-paddle)| CMake 代码风格检查 | 1.5.1 |
96
+ | [yamlfmt](https://github.com/PFCCLab/yamlfmt-pre-commit-mirror.git) | YAML 代码格式化 | 0.16.0 |
95
97
96
98
> 注:这些工具可能会更新,详细配置请查看:[https://github.com/PaddlePaddle/Paddle/blob/develop/.pre-commit-config.yaml](https://github.com/PaddlePaddle/Paddle/blob/develop/.pre-commit-config.yaml)。
97
99
0 commit comments