.pre-commit-config.yaml 1.0 KB
Newer Older
Y
Yu Yang 已提交
1
-   repo: https://github.com/Lucas-C/pre-commit-hooks.git
Y
Yi Wang 已提交
2
    sha: v1.0.1
Y
Yu Yang 已提交
3 4
    hooks:
    -   id: remove-crlf
L
liaogang 已提交
5
        files: (?!.*third_party)^.*$ | (?!.*book)^.*$
Y
Yu Yang 已提交
6 7
-   repo: https://github.com/PaddlePaddle/mirrors-yapf.git
    sha: 0d79c0c469bab64f7229c9aca2b1186ef47f0e37
Y
Yu Yang 已提交
8
    hooks:
Y
Yi Wang 已提交
9 10
    -   id: yapf
        files: (.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$
Y
Yu Yang 已提交
11
-   repo: https://github.com/pre-commit/pre-commit-hooks
Y
Yi Wang 已提交
12
    sha: 5bf6c09bfa1297d3692cadd621ef95f1284e33c0
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)^.*$ | (?!.*book)^.*$
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
24
-   repo: https://github.com/PaddlePaddle/pre-commit-golang
25
    sha: 8337620115c25ff8333f1b1a493bd031049bd7c0
W
wuyi05 已提交
26
    hooks:
27 28 29 30 31 32
    -   id: go-fmt
        types:
        - go
    -   id: gometalinter
        types:
        - go