Spaces:
Running
Running
File size: 1,133 Bytes
304e233 e0d4a07 304e233 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
.PHONY: sync setup install dev-backend dev-frontend dev clean
# Sync all dependencies (Python + Node.js)
sync:
@echo "Syncing Python dependencies..."
uv sync --all-extras
@echo "Installing frontend dependencies..."
cd cua2-front && npm install
@echo "✓ All dependencies synced!"
setup: sync
install-frontend:
cd cua2-front && npm install
# Start backend development server
dev-backend:
cd cua2-core && uv run uvicorn cua2_core.main:app --reload --host 0.0.0.0 --port 8000
# Start frontend development server
dev-frontend:
cd cua2-front && npm run dev
pre-commit:
uv run pre-commit run --all-files --show-diff-on-failure
make test
# Run tests
test:
cd cua2-core && uv run pytest tests/ -v
test-coverage:
cd cua2-core && uv run pytest tests/ -v --cov=cua2_core --cov-report=html --cov-report=term
clean:
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
cd cua2-front && rm -rf node_modules dist 2>/dev/null || true
@echo "✓ Cleaned!"
|