2020-04-19 19:00:25 +08:00
|
|
|
- repo: https://github.com/PaddlePaddle/mirrors-yapf.git
|
|
|
|
sha: 0d79c0c469bab64f7229c9aca2b1186ef47f0e37
|
|
|
|
hooks:
|
|
|
|
- id: yapf
|
|
|
|
files: \.py$
|
|
|
|
|
2020-04-20 21:16:04 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-autopep8
|
|
|
|
rev: v1.5
|
|
|
|
hooks:
|
|
|
|
- id: autopep8
|
|
|
|
|
2020-04-19 19:00:25 +08:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2020-04-20 21:16:04 +08:00
|
|
|
rev: v2.5.0
|
2020-04-19 19:00:25 +08:00
|
|
|
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)$
|
2020-04-20 21:16:04 +08:00
|
|
|
- id: check-case-conflict
|
|
|
|
|
2020-04-19 19:00:25 +08:00
|
|
|
- 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)$
|