1 Star 2 Fork 0

divenswu / segment-anything

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
linter.sh 564 Bytes
一键复制 编辑 原始数据 按行查看 历史
Eric Mintun 提交于 2023-04-04 22:25 . Initial commit
#!/bin/bash -e
# Copyright (c) Facebook, Inc. and its affiliates.
{
black --version | grep -E "23\." > /dev/null
} || {
echo "Linter requires 'black==23.*' !"
exit 1
}
ISORT_VERSION=$(isort --version-number)
if [[ "$ISORT_VERSION" != 5.12* ]]; then
echo "Linter requires isort==5.12.0 !"
exit 1
fi
echo "Running isort ..."
isort . --atomic
echo "Running black ..."
black -l 100 .
echo "Running flake8 ..."
if [ -x "$(command -v flake8)" ]; then
flake8 .
else
python3 -m flake8 .
fi
echo "Running mypy..."
mypy --exclude 'setup.py|notebooks' .
1
https://gitee.com/divenswu/segment-anything.git
git@gitee.com:divenswu/segment-anything.git
divenswu
segment-anything
segment-anything
main

搜索帮助