27 Star 162 Fork 50

PaddlePaddle / Paddle-Lite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.pre-commit-config.yaml 2.08 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
sha: v1.0.1
hooks:
- id: remove-crlf
files: (?!.*third_party)^.*$|(?!.*book)^.*$
exclude: ^(third-party/|metal/|web/)
- repo: https://github.com/PaddlePaddle/mirrors-yapf.git
sha: 0d79c0c469bab64f7229c9aca2b1186ef47f0e37
hooks:
- id: yapf
language_version: python3
files: (.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: 5bf6c09bfa1297d3692cadd621ef95f1284e33c0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
files: (?!.*third_party)^.*$|(?!.*book)^.*$
- id: end-of-file-fixer
exclude: ^(third-party/)
- repo: local
hooks:
- id: clang-format-with-version-check
name: clang-format
description: Format files with ClangFormat.
entry: bash ./tools/codestyle/clang_format.hook -i
language: system
files: \.(c|cc|cxx|cpp|cu|cl|h|hpp|hxx|proto|mm|m|metal)$
exclude: ^(third-party/|metal/|web/)
- repo: local
hooks:
- id: cpplint-cpp-source
name: cpplint
description: Check C++ code style using cpplint.py.
entry: bash ./tools/codestyle/cpplint_pre_commit.hook
language: system
files: \.(c|cc|cxx|cpp|cu|cl|h|hpp|hxx)$
exclude: ^(third-party/) | ^(metal/) | ^(web/) | ^(lite/kernels/metal/|lite/backends/metal/)
#- repo: local
#hooks:
#- id: pylint-doc-string
#name: pylint
#description: Check python docstring style using docstring_checker.
#entry: bash ./tools/codestyle/pylint_pre_commit.hook
#language: system
#files: \.(py)$
- repo: local
hooks:
- id: copyright_checker
name: copyright_checker
entry: python3 ./tools/codestyle/copyright.hook
language: system
files: \.(c|cc|cxx|cpp|cu|cl|h|hpp|hxx|proto|py|mm|m|metal)$
exclude: (?!.*third_party)^.*$|(?!.*book)^.*$
exclude: ^(third-party/|metal/|web/)
C++
1
https://gitee.com/paddlepaddle/paddle-lite.git
git@gitee.com:paddlepaddle/paddle-lite.git
paddlepaddle
paddle-lite
Paddle-Lite
develop

搜索帮助

14c37bed 8189591 565d56ea 8189591