-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsetup-dev.sh
More file actions
executable file
·63 lines (51 loc) · 1.75 KB
/
setup-dev.sh
File metadata and controls
executable file
·63 lines (51 loc) · 1.75 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# Development Environment Setup Script
# This script sets up the virtual environment and installs all dependencies
# for the Claude Gemini MCP Slim project
set -e # Exit on any error
echo "🚀 Setting up development environment for Claude Gemini MCP Slim..."
# Check if Python 3 is available
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed. Please install Python 3.8+ first."
exit 1
fi
# Create virtual environment if it doesn't exist
if [ ! -d ".venv" ]; then
echo "📦 Creating virtual environment..."
python3 -m venv .venv
else
echo "📦 Virtual environment already exists"
fi
# Activate virtual environment
echo "🔄 Activating virtual environment..."
source .venv/bin/activate
# Upgrade pip
echo "⬆️ Upgrading pip..."
python -m pip install --upgrade pip
# Install production dependencies
echo "📚 Installing production dependencies..."
pip install -r requirements.txt
# Install development dependencies
echo "🛠️ Installing development dependencies..."
pip install -r requirements-dev.txt
# Initialize Husky hooks
echo "🔧 Initializing Husky hooks..."
npx husky install || echo "ℹ️ Husky hooks already initialized or npm not available"
# Run a test to make sure everything is working
echo "🧪 Running a quick test..."
python -m pytest tests/unit/test_basic_operations.py -v
echo ""
echo "✅ Development environment setup complete!"
echo ""
echo "📝 To activate the virtual environment in the future, run:"
echo " source .venv/bin/activate"
echo ""
echo "🧪 To run all tests:"
echo " python -m pytest"
echo ""
echo "🔍 To run code quality checks manually:"
echo " npm run lint"
echo " npm run format"
echo " npm run test"
echo ""
echo "🚀 You're ready to start developing!"