.pre-commit-config.yaml 1.0 KB
Newer Older
L
Luo Tao 已提交
1 2 3 4 5 6
-   repo: https://github.com/reyoung/mirrors-yapf.git
    sha: v0.13.2
    hooks:
    - id: yapf
      files: (.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$  # Bazel BUILD files follow Python syntax.
-   repo: https://github.com/pre-commit/pre-commit-hooks
7
    sha: v0.7.1
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$
27 28 29 30 31 32 33 34
- 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$