.pre-commit-config.yaml 999 字节
Newer Older
Y
Yu Yang 已提交
1 2 3 4 5 6 7 8
-   repo: https://github.com/Lucas-C/pre-commit-hooks.git
    sha: c25201a00e6b0514370501050cf2a8538ac12270
    hooks:
    -   id: remove-crlf
-   repo: https://github.com/reyoung/mirrors-yapf.git
    sha: v0.13.2
    hooks:
    -   id: yapf
Y
Yu Yang 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
-   repo: https://github.com/pre-commit/pre-commit-hooks
    sha: 4ef03c4223ad322c7adaa6c6c0efb26b57df3b71
    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
Y
Yu Yang 已提交
25 26 27 28
-   repo: https://github.com/PaddlePaddle/clang-format-pre-commit-hook.git
    sha: 38b232ea0fd2be46c26a691b9f32dd94d1ee3333
    hooks:
    -   id: clang-formater