.pre-commit-config.yaml 850 字节
Newer Older
Y
Yu Yang 已提交
1 2 3 4
-   repo: https://github.com/Lucas-C/pre-commit-hooks.git
    sha: c25201a00e6b0514370501050cf2a8538ac12270
    hooks:
    -   id: remove-crlf
L
liaogang 已提交
5
        files: (?!.*third_party)^.*$
Y
Yu Yang 已提交
6 7 8
-   repo: https://github.com/reyoung/mirrors-yapf.git
    sha: v0.13.2
    hooks:
9
    - id: yapf
10
      files: (.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$  # Bazel BUILD files follow Python syntax.
Y
Yu Yang 已提交
11
-   repo: https://github.com/pre-commit/pre-commit-hooks
Y
Yu Yang 已提交
12
    sha: 7539d8bd1a00a3c1bfd34cdb606d3a6372e83469
Y
Yu Yang 已提交
13 14 15 16 17
    hooks:
    -   id: check-added-large-files
    -   id: check-merge-conflict
    -   id: check-symlinks
    -   id: detect-private-key
L
liaogang 已提交
18
        files: (?!.*third_party)^.*$
Y
Yu Yang 已提交
19
    -   id: end-of-file-fixer
Y
Yu Yang 已提交
20
-   repo: https://github.com/PaddlePaddle/clang-format-pre-commit-hook.git
Y
Yu Yang 已提交
21
    sha: 28c0ea8a67a3e2dbbf4822ef44e85b63a0080a29
Y
Yu Yang 已提交
22 23
    hooks:
    -   id: clang-formater