.pre-commit-config.yaml 881 字节
Newer Older
W
WuHaobo 已提交
1 2 3 4 5 6
- repo: https://github.com/PaddlePaddle/mirrors-yapf.git
  sha: 0d79c0c469bab64f7229c9aca2b1186ef47f0e37
  hooks:
    - id: yapf
      files: \.py$

W
add ad  
WuHaobo 已提交
7 8 9 10 11
- repo: https://github.com/pre-commit/mirrors-autopep8
  rev: v1.5
  hooks:
  - id: autopep8

W
WuHaobo 已提交
12
- repo: https://github.com/pre-commit/pre-commit-hooks
W
add ad  
WuHaobo 已提交
13
  rev: v2.5.0
W
WuHaobo 已提交
14 15 16 17 18 19 20 21 22 23 24
  hooks:
    - id: flake8
      args: ['--ignore=E265']
    - id: check-yaml
    - id: check-merge-conflict
    - id: detect-private-key
      files: (?!.*paddle)^.*$
    - id: end-of-file-fixer
      files: \.(md|yml)$
    - id: trailing-whitespace
      files: \.(md|yml)$
W
add ad  
WuHaobo 已提交
25 26
    - id: check-case-conflict

W
WuHaobo 已提交
27 28 29 30 31 32 33 34 35 36 37
- repo: https://github.com/Lucas-C/pre-commit-hooks
  sha: v1.0.1
  hooks:
    - id: forbid-crlf
      files: \.(md|yml)$
    - id: remove-crlf
      files: \.(md|yml)$
    - id: forbid-tabs
      files: \.(md|yml)$
    - id: remove-tabs
      files: \.(md|yml)$