Spaces:
Sleeping
Sleeping
| # MSSE AI Engineering - Development Makefile | |
| # Convenient commands for local development and CI/CD testing | |
| .PHONY: help format check test ci-check clean install | |
| # 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 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 | |
| # 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 | |