.pre-commit-config.yaml 1.2 KB
Newer Older
G
gongweibao 已提交
1 2
-   repo: https://github.com/pre-commit/mirrors-yapf.git
    sha: v0.16.0
L
Luo Tao 已提交
3
    hooks:
G
gongweibao 已提交
4 5
    -   id: yapf
        files: \.py$
L
Luo Tao 已提交
6
-   repo: https://github.com/pre-commit/pre-commit-hooks
G
gongweibao 已提交
7
    sha: a11d9314b22d8f8c7556443875b731ef05965464
L
Luo Tao 已提交
8
    hooks:
Y
Yi Wang 已提交
9
    -   id: check-merge-conflict
L
Luo Tao 已提交
10 11
    -   id: check-symlinks
    -   id: detect-private-key
L
liaogang 已提交
12
        files: (?!.*paddle)^.*$
L
Luo Tao 已提交
13
    -   id: end-of-file-fixer
Y
Update  
Yi Wang 已提交
14
        files: \.md$
15
    -   id: trailing-whitespace
Y
Update  
Yi Wang 已提交
16
        files: \.md$
L
Luo Tao 已提交
17
-   repo: https://github.com/Lucas-C/pre-commit-hooks
18 19 20
    sha: v1.0.1
    hooks:
    -   id: forbid-crlf
Y
Update  
Yi Wang 已提交
21
        files: \.md$
22
    -   id: remove-crlf
Y
Update  
Yi Wang 已提交
23
        files: \.md$
24
    -   id: forbid-tabs
Y
Update  
Yi Wang 已提交
25
        files: \.md$
26
    -   id: remove-tabs
Y
Update  
Yi Wang 已提交
27
        files: \.md$
L
Luo Tao 已提交
28
-   repo: https://github.com/reyoung/pre-commit-hooks-jinja-compile.git
Y
Yu Yang 已提交
29 30 31
    sha: 85ad800cbc9c60a64230d60971aa9576fd57e508
    hooks:
    -   id: convert-jinja2-into-html
G
gongweibao 已提交
32 33 34 35 36
-   repo: local
    hooks:
    -   id: convert-markdown-into-html
        name: convert-markdown-into-html
        description: Convert README.md into index.html and README.en.md into index.en.html
L
Luo Tao 已提交
37
        entry: python .pre-commit-hooks/convert_markdown_into_html.py
G
gongweibao 已提交
38
        language: system
39
        files: .+README(\.en)?\.md$
Y
Yu Yang 已提交
40