update gitignore

This commit is contained in:
Fengqing Liu
2026-04-29 15:13:26 +10:00
parent 3ef92d8d7f
commit a5c8ad13da
3 changed files with 1394 additions and 46 deletions

2
.gitignore vendored
View File

@@ -27,3 +27,5 @@ data/
*.log
*.egg-info/
.coverage
artifacts/

View File

@@ -1,45 +0,0 @@
#!/usr/bin/env bash
dirpath=$(dirname "$(readlink -f "$0")")
# Check if git is installed
if ! command -v git &> /dev/null; then
echo
echo "No git executable found in PATH!"
echo
read -p "Press any key to continue..."
exit 1
fi
# Check if the virtual environment exists
if [ ! -d "$dirpath/env" ]; then
echo
echo "Creating the env folder..."
python3 -m venv "$dirpath/env"
if [ $? -ne 0 ]; then
echo
echo "No python executable found in PATH or failed to create virtual environment!"
echo
read -p "Press any key to continue..."
exit 1
fi
fi
# Activate the virtual environment and install dependencies
echo
echo "Installing dependencies from pyproject.toml..."
"$dirpath/env/bin/python" -m pip install -U pip
"$dirpath/env/bin/pip" install wheel
"$dirpath/env/bin/pip" install -e "$dirpath"
if [ $? -ne 0 ]; then
echo
echo "Failed to install dependencies."
echo
read -p "Press any key to continue..."
exit 1
fi
echo
echo "Environment setup completed successfully."
echo
read -p "Press any key to continue..."

1391
uv.lock generated Normal file

File diff suppressed because it is too large Load Diff