2020-02-24 03:02:36 +08:00
|
|
|
- repo: https://github.com/PaddlePaddle/mirrors-yapf.git
|
|
|
|
sha: 0d79c0c469bab64f7229c9aca2b1186ef47f0e37
|
|
|
|
hooks:
|
|
|
|
- id: yapf
|
|
|
|
files: \.py$
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
sha: a11d9314b22d8f8c7556443875b731ef05965464
|
|
|
|
hooks:
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-symlinks
|
|
|
|
- id: detect-private-key
|
|
|
|
files: (?!.*paddle)^.*$
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
files: \.md$
|
|
|
|
- id: trailing-whitespace
|
|
|
|
files: \.md$
|
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
|
|
sha: v1.0.1
|
|
|
|
hooks:
|
|
|
|
- id: forbid-crlf
|
|
|
|
files: \.md$
|
|
|
|
- id: remove-crlf
|
|
|
|
files: \.md$
|
|
|
|
- id: forbid-tabs
|
|
|
|
files: \.md$
|
|
|
|
- id: remove-tabs
|
|
|
|
files: \.md$
|
2020-02-26 21:03:51 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: copyright_checker
|
|
|
|
name: copyright_checker
|
|
|
|
entry: python ./tools/copyright.hook
|
|
|
|
language: system
|
|
|
|
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$
|
|
|
|
exclude: (?!.*third_party)^.*$ | (?!.*book)^.*$
|