# 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