|
|
|
@ -17,10 +17,14 @@
|
|
|
|
|
- id: detect-private-key
|
|
|
|
|
files: (?!.*third_party)^.*$ | (?!.*book)^.*$
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
- repo: https://github.com/PaddlePaddle/clang-format-pre-commit-hook.git
|
|
|
|
|
sha: 28c0ea8a67a3e2dbbf4822ef44e85b63a0080a29
|
|
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
|
|
|
|
- id: clang-formater
|
|
|
|
|
- id: clang-format
|
|
|
|
|
name: clang-format
|
|
|
|
|
description: Format files with ClangFormat.
|
|
|
|
|
entry: clang-format -i
|
|
|
|
|
language: system
|
|
|
|
|
files: \.(c|cc|cxx|cpp|h|hpp|hxx)$
|
|
|
|
|
- repo: https://github.com/PaddlePaddle/pre-commit-golang
|
|
|
|
|
sha: 8337620115c25ff8333f1b1a493bd031049bd7c0
|
|
|
|
|
hooks:
|
|
|
|
|