-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·43 lines (35 loc) · 1.16 KB
/
setup.sh
File metadata and controls
executable file
·43 lines (35 loc) · 1.16 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
#!/bin/bash
# Quick Start Script for Algos Repository
echo "🚀 Setting up Algos Repository..."
# Check Python version
python_version=$(python3 --version 2>&1 | awk '{print $2}')
echo "✓ Python version: $python_version"
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "📦 Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "🔌 Activating virtual environment..."
source venv/bin/activate
# Install dependencies
echo "📥 Installing dependencies..."
pip install -r requirements.txt
# Run tests
echo "🧪 Running tests..."
pytest tests/ -v
echo ""
echo "✅ Setup complete!"
echo ""
echo "📚 Quick Commands:"
echo " • Run all tests: pytest tests/"
echo " • Run with coverage: pytest --cov=implementations tests/"
echo " • Run specific test: pytest tests/test_hash_map.py"
echo " • Run doctests: python -m doctest implementations/*.py"
echo ""
echo "📖 Documentation:"
echo " • README.md - Pattern cheat sheet"
echo " • CONTRIBUTING.md - How to contribute"
echo " • STUDY_GUIDE.md - Study plan & tips"
echo ""
echo "Happy coding! 🎉"