|
|
|
@ -7,22 +7,14 @@
|
|
|
|
|
hooks:
|
|
|
|
|
- id: yapf
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
|
sha: 4ef03c4223ad322c7adaa6c6c0efb26b57df3b71
|
|
|
|
|
sha: 7539d8bd1a00a3c1bfd34cdb606d3a6372e83469
|
|
|
|
|
hooks:
|
|
|
|
|
- id: check-added-large-files
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-symlinks
|
|
|
|
|
- id: detect-private-key
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
# TODO(yuyang): trailing whitespace has some bugs on markdown
|
|
|
|
|
# files now, please not add it to pre-commit hook now
|
|
|
|
|
# - id: trailing-whitespace
|
|
|
|
|
#
|
|
|
|
|
# TODO(yuyang): debug-statements not fit for Paddle, because
|
|
|
|
|
# not all of our python code is runnable. Some are used for
|
|
|
|
|
# documenation
|
|
|
|
|
# - id: debug-statements
|
|
|
|
|
- repo: https://github.com/PaddlePaddle/clang-format-pre-commit-hook.git
|
|
|
|
|
sha: 38b232ea0fd2be46c26a691b9f32dd94d1ee3333
|
|
|
|
|
sha: 28c0ea8a67a3e2dbbf4822ef44e85b63a0080a29
|
|
|
|
|
hooks:
|
|
|
|
|
- id: clang-formater
|
|
|
|
|