.pre-commit-config.yaml 1.3 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$
G
gongweibao 已提交
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$
G
gongweibao 已提交
27 28 29 30 31 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
        entry: python pre-commit-hooks/convert_markdown_into_html.py
        language: system
        files: \.md$
-   repo: local
    hooks:
G
gongweibao 已提交
37 38
    -  id: convert-markdown-into-ipynb
       name: convert-markdown-into-ipynb
G
gongweibao 已提交
39
       description: Convert README.md into README.ipynb and README.en.md into README.en.ipynb
G
gongweibao 已提交
40 41 42
       entry: ./pre-commit-hooks/convert_markdown_into_ipynb.sh
       language: system
       files: \.md$