Seth McKnight
Comprehensive memory optimizations and embedding service updates (#74)
32e4125
# MSSE AI Engineering - Development Makefile
# Convenient commands for local development and CI/CD testing
.PHONY: help format check test ci-check clean install build-embeddings
# Default target
help:
@echo "πŸš€ MSSE AI Engineering - Development Commands"
@echo "=============================================="
@echo ""
@echo "Available commands:"
@echo " make format - Auto-format code (black + isort)"
@echo " make check - Check formatting without changes"
@echo " make test - Run test suite"
@echo " make ci-check - Full CI/CD pipeline check"
@echo " make build-embeddings - Build vector database for deployment"
@echo " make install - Install development dependencies"
@echo " make clean - Clean cache and temp files"
@echo ""
@echo "Quick workflow:"
@echo " 1. make format # Fix formatting"
@echo " 2. make ci-check # Verify CI/CD compliance"
@echo " 3. git add . && git commit -m 'your message'"
@echo " 4. git push # Should pass CI/CD!"
# Auto-format code
format:
@echo "🎨 Formatting code..."
@./dev-tools/format.sh
# Check formatting without making changes
check:
@echo "πŸ” Checking code formatting..."
@black --check .
@isort --check-only .
@flake8 --max-line-length=88 --exclude venv
# Run tests
test:
@echo "πŸ§ͺ Running tests..."
@./venv/bin/python -m pytest -v
# Full CI/CD pipeline check
ci-check:
@echo "πŸ”„ Running full CI/CD pipeline check..."
@./dev-tools/local-ci-check.sh
# Install development dependencies
install:
@echo "πŸ“¦ Installing development dependencies..."
@pip install black isort flake8 pytest
# Build vector database with embeddings for deployment
build-embeddings:
@echo "πŸ”§ Building embeddings database..."
@python build_embeddings.py
# Clean cache and temporary files
clean:
@echo "🧹 Cleaning cache and temporary files..."
@find . -type d -name "__pycache__" -exec rm -rf {} +
@find . -type d -name ".pytest_cache" -exec rm -rf {} +
@find . -type f -name "*.pyc" -delete