| |
| |
|
|
| .PHONY: help format check test ci-check clean install build-embeddings |
|
|
| |
| 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!" |
|
|
| |
| format: |
| @echo "π¨ Formatting code..." |
| @./dev-tools/format.sh |
|
|
| |
| check: |
| @echo "π Checking code formatting..." |
| @black --check . |
| @isort --check-only . |
| @flake8 --max-line-length=88 --exclude venv |
|
|
| |
| test: |
| @echo "π§ͺ Running tests..." |
| @./venv/bin/python -m pytest -v |
|
|
| |
| ci-check: |
| @echo "π Running full CI/CD pipeline check..." |
| @./dev-tools/local-ci-check.sh |
|
|
| |
| install: |
| @echo "π¦ Installing development dependencies..." |
| @pip install black isort flake8 pytest |
|
|
| |
| build-embeddings: |
| @echo "π§ Building embeddings database..." |
| @python build_embeddings.py |
|
|
| |
| 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 |
|
|