Files
FastDeploy/third_party/onnx/tools/style.sh
Jason 6343b0db47 [Build] Support build with source code of Paddle2ONNX (#1559)
* 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>
2023-03-17 10:03:22 +08:00

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