mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-29 02:52:55 +08:00
* Add notes for tensors * Optimize some apis * move some warnings * Support build with Paddle2ONNX * Add protobuf support * Fix compile on mac * add clearn package script * Add paddle2onnx code * remove submodule * Add onnx ocde * remove softlink * add onnx code * fix error * Add cmake file * fix patchelf * update paddle2onnx * Delete .gitmodules --------- Co-authored-by: PaddleCI <paddle_ci@example.com> Co-authored-by: pangyoki <pangyoki@126.com> Co-authored-by: jiangjiajun <jiangjiajun@baidu.lcom>
26 lines
522 B
Bash
Executable File
26 lines
522 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
|
|
|
|
cd "$(git rev-parse --show-toplevel)"
|
|
|
|
echo -e "===> check flake8"
|
|
flake8 onnx tools workflow_scripts
|
|
|
|
echo -e "\n===> check mypy"
|
|
mypy . --no-site-packages
|
|
|
|
# Currently, clang-format is not checked on CIs.
|
|
if [ "${ENABLE_CLANG_FORMAT:-0}" == "1" ]; then
|
|
echo -e "\n===> run clang-format"
|
|
git ls-files --exclude-standard -- '*/*.cc' '*/*.h' | \
|
|
xargs ${CLANG_FORMAT_BIN:-clang-format} -i
|
|
fi
|
|
|
|
git diff --exit-code
|