1 Star 0 Fork 0

spklee/python-vlc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dev_setup.sh 884 Bytes
一键复制 编辑 原始数据 按行查看 历史
Olivier Aubert 提交于 2024-08-21 23:10 +08:00 . Add info about pre-commit install
#!/bin/bash
# Setup development environment
PROJECT_ROOT=$(dirname "$(readlink -f $0)")
cd "${PROJECT_ROOT}" || exit
VENV_DIR="${PROJECT_ROOT}/.venv"
# Clone Tree-sitter grammar which is a Git submodule of the project
# See https://git-scm.com/book/en/v2/Git-Tools-Submodules
echo "Updating C Tree-sitter grammar"
git submodule update --init --recursive
if [ ! -d "${PROJECT_ROOT}/.venv" ]
then
# Create a virtual environment if it doesn't exist
echo "Creating a virtual environment in .venv"
python3 -m venv "${VENV_DIR}"
fi
echo "Activating .venv"
# shellcheck source=/dev/null
. "${VENV_DIR}/bin/activate"
echo "Upgrading .venv's pip"
python3 -m pip install --upgrade pip
echo "Installing dependencies"
python3 -m pip install -r requirements.txt
echo "If you want to enable pre-commit hooks (ruff checks), run the command pre-commit install"
echo "Setup done"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/spklee/python-vlc.git
git@gitee.com:spklee/python-vlc.git
spklee
python-vlc
python-vlc
master

搜索帮助