.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 12
    -   id: check-symlinks
    -   id: detect-private-key
    -   id: end-of-file-fixer
Y
Update  
Yi Wang 已提交
13
        files: \.md$
14
    -   id: trailing-whitespace
Y
Update  
Yi Wang 已提交
15
        files: \.md$
L
Luo Tao 已提交
16
-   repo: https://github.com/Lucas-C/pre-commit-hooks
17 18 19
    sha: v1.0.1
    hooks:
    -   id: forbid-crlf
Y
Update  
Yi Wang 已提交
20
        files: \.md$
21
    -   id: remove-crlf
Y
Update  
Yi Wang 已提交
22
        files: \.md$
23
    -   id: forbid-tabs
Y
Update  
Yi Wang 已提交
24
        files: \.md$
25
    -   id: remove-tabs
Y
Update  
Yi Wang 已提交
26
        files: \.md$
Y
Yu Yang 已提交
27 28 29 30
-   repo: git://github.com/reyoung/pre-commit-hooks-jinja-compile.git
    sha: 85ad800cbc9c60a64230d60971aa9576fd57e508
    hooks:
    -   id: convert-jinja2-into-html
G
gongweibao 已提交
31 32 33 34 35 36 37
-   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
        entry: python pre-commit-hooks/convert_markdown_into_html.py
        language: system
38
        files: .+README(\.en)?\.md$
Y
Yu Yang 已提交
39