1 Star 0 Fork 0

wwhio/fvcore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
linter.sh 530 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yuxin Wu 提交于 2021-05-07 02:19 . update black version
#!/bin/bash -ev
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# Run this script at project root by "./linter.sh" before you commit.
{
black --version | grep -E "21.4b2" > /dev/null
} || {
echo "Linter requires 'black==21.4b2' !"
exit 1
}
echo "Running isort..."
isort -y -sp .
echo "Running black..."
black .
echo "Running flake8..."
if [ -x "$(command -v flake8-3)" ]; then
flake8-3 .
else
python3 -m flake8 .
fi
command -v arc > /dev/null && {
echo "Running arc lint ..."
arc lint
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zfr9b/fvcore.git
[email protected]:zfr9b/fvcore.git
zfr9b
fvcore
fvcore
main

搜索帮助