-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·33 lines (28 loc) · 912 Bytes
/
setup.sh
File metadata and controls
executable file
·33 lines (28 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
echo "🚀 Setting up todo.ai development environment..."
# Install uv if not present
if ! command -v uv &> /dev/null; then
echo "📦 Installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
# Add uv to PATH for current session (default installation path)
export PATH="$HOME/.local/bin:$PATH"
# Also check XDG_BIN_HOME if set
if [[ -n "$XDG_BIN_HOME" ]]; then
export PATH="$XDG_BIN_HOME:$PATH"
fi
fi
# Sync dependencies
echo "📦 Installing dependencies..."
uv sync --all-extras
# Install pre-commit hooks
echo "🔧 Installing pre-commit hooks..."
uv run pre-commit install
echo ""
echo "✅ Setup complete!"
echo ""
echo "Next steps:"
echo " - Run tests: uv run pytest"
echo " - Run linting: uv run ruff check ."
echo " - Run type checking: uv run mypy todo_ai"
echo " - Run pre-commit on all files: uv run pre-commit run --all-files"