Download platform/dataops/dto/Makefile from LevelUp2x/adaptai: direct link, hf CLI and curl.
- Browser
- Download file 2.79 kB
-
https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/main/platform/dataops/dto/Makefile
- Command line
-
hf download hf://datasets/LevelUp2x/adaptai/platform/dataops/dto/Makefile
-
curl -L -o Makefile https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/main/platform/dataops/dto/Makefile
2.79 kB
| # DTO Framework Makefile | |
| # Common tasks and utilities | |
| .PHONY: help install test lint format docker clean | |
| # Default target | |
| help: | |
| # Install dependencies | |
| install: | |
| pip install -r requirements.txt | |
| pip install -r requirements-dev.txt | |
| # Run tests | |
| test: | |
| python -m pytest tests/ -v --cov=. | |
| # Linting and code quality | |
| lint: | |
| flake8 . --max-line-length=88 --extend-ignore=E203 | |
| mypy . --ignore-missing-imports | |
| bandit -r . -x tests | |
| # Code formatting | |
| format: | |
| black . | |
| isort . | |
| # Build Docker image | |
| docker: | |
| docker build -t adaptai/dto-framework:latest . | |
| # Clean build artifacts | |
| clean: | |
| rm -rf __pycache__ */__pycache__ *.pyc | |
| rm -rf .pytest_cache .coverage htmlcov | |
| rm -rf build/ dist/ *.egg-info | |
| # Validate DTO manifest | |
| validate: | |
| python validate-ci.py | |
| # Generate configuration | |
| generate: | |
| python generate.py | |
| # Build documentation | |
| docs: | |
| mkdocs build | |
| # Development server | |
| dev: | |
| python -m http.server 8000 | |
| # Production run | |
| run: | |
| python services/dto_service_manager.py | |
| # Security scan | |
| security: | |
| bandit -r . | |
| safety check | |
| # Dependency update | |
| update: | |
| pip install --upgrade -r requirements.txt | |
| # Containerized development | |
| dev-container: | |
| docker compose -f docker-compose.dev.yml up --build | |
| # Database migration | |
| migrate: | |
| python database/migrate.py | |
| # Backup configuration | |
| backup: | |
| tar czf dto-backup-$(date +%Y%m%d-%H%M%S).tar.gz . --exclude=".git" --exclude="__pycache__" | |
| # Performance test | |
| perf-test: | |
| python tests/performance_test.py | |
| # Release preparation | |
| release: | |
| make test | |
| make lint | |
| make security | |
| make docs | |
| # Quick validation | |
| quick-check: | |
| python validate-ci.py --quick | |
| # Environment setup | |
| setup: | |
| make install | |
| make generate | |