1 Star 0 Fork 13

Kobe Bryant/rainbond-console

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
check_code.sh 741 Bytes
一键复制 编辑 原始数据 按行查看 历史
GLYASAI 提交于 2021-05-12 13:40 . make check_code passed
#! /bin/bash
# check code
echo "start check code specification by flake8"
flake8 --exclude www/migrations,console/migrations,env,venv,static,www/alipay_direct,www/utils/mnssdk,backends --extend-ignore=W605 --max-line-length 129 ./
if [ $? -ne 0 ]; then
exit 1
fi
echo "check code specification success"
# check code format
echo "start check code style by yapf"
yapf --exclude env --exclude venv --exclude static --exclude www/migrations --exclude console/migrations --exclude www/alipay_direct --exclude www/utils/mnssdk --exclude backends --style style.cfg -r ./ -i
[[ -z $(git status -s) ]] || {
echo "some code do not format before commit, please run 'make format' before git commit"
exit 1
}
echo "check code style success"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wx_ce0233e08c/rainbond-console.git
git@gitee.com:wx_ce0233e08c/rainbond-console.git
wx_ce0233e08c
rainbond-console
rainbond-console
master

搜索帮助