未验证 提交 797d898c 编写于 作者: T tianshuo78520a 提交者: GitHub

pre-commit use python3.8 (#37829)

* fix

* test=document_fix
上级 0633e14d
......@@ -316,6 +316,10 @@ function check_style() {
mkdir -p $GOPATH/src/github.com/PaddlePaddle/
ln -sf ${PADDLE_ROOT} $GOPATH/src/github.com/PaddlePaddle/Paddle
# pre-commit use python3.8.0
OLD_PATH=$PATH
export PATH=export PATH=/usr/local/python3.8.0/bin:/usr/local/python3.8.0/include:/usr/local/bin:${PATH}
pre-commit install
clang-format --version
......@@ -325,6 +329,8 @@ function check_style() {
commit_files=off
fi
done
export PATH=${OLD_PATH}
if [ $commit_files == 'off' ];then
echo "code format error"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册