4 Star 14 Fork 1

PaddlePaddle / edl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.pre-commit-config.yaml 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
巩伟宝 提交于 2020-09-30 10:39 . Add static code analysis tools (#150)
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
exclude: ^(\.tools\/|example\/|k8s\/)
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.5.1
hooks:
- id: python-use-type-annotations
exclude: ^(\.tools\/|example\/|k8s\/)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py|sh)$
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: debug-statements
exclude: ^(\.tools\/|example\/|k8s\/)
- id: requirements-txt-fixer
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- repo: local
hooks:
- id: copyright_checker
name: copyright_checker
entry: python .tools/codestyle/copyright.py
language: system
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py|sh)$
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
exclude: ^(\.tools\/|example\/|k8s\/)
args: ['--max-line-length=100', '--extend-ignore=E203']
- repo: local
hooks:
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
files: .sh$
exclude: ^(\.tools\/|example\/|k8s\/)
Go
1
https://gitee.com/paddlepaddle/edl.git
git@gitee.com:paddlepaddle/edl.git
paddlepaddle
edl
edl
develop

搜索帮助