Files
wehub-resource-sync e0e362d700
SDK Tests / SDK CI (push) Blocked by required conditions
SDK Tests / changes (push) Successful in 2m29s
Real E2E Tests / changes (push) Successful in 2m29s
SDK Tests / Python SDK Tests (sandbox) (push) Waiting to run
SDK Tests / CLI Quality (push) Waiting to run
SDK Tests / CLI Tests (push) Waiting to run
SDK Tests / Python SDK Quality (code-interpreter) (push) Waiting to run
SDK Tests / Python SDK Quality (sandbox) (push) Waiting to run
SDK Tests / Python SDK Tests (code-interpreter) (push) Waiting to run
SDK Tests / JavaScript SDK Quality And Tests (code-interpreter) (push) Waiting to run
SDK Tests / JavaScript SDK Quality And Tests (sandbox) (push) Waiting to run
SDK Tests / Kotlin SDK Quality And Tests (sandbox) (push) Waiting to run
SDK Tests / Kotlin SDK Quality And Tests (code-interpreter) (push) Waiting to run
SDK Tests / C# SDK Quality And Tests (code-interpreter) (push) Waiting to run
SDK Tests / C# SDK Quality And Tests (sandbox) (push) Waiting to run
SDK Tests / Go SDK Quality And Tests (push) Waiting to run
Deploy Docs Pages / build (push) Has been cancelled
Deploy Docs Pages / deploy (push) Has been cancelled
Real E2E Tests / JavaScript E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Python E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Java E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / C# E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Go E2E (docker bridge) (push) Has been cancelled
Real E2E Tests / Real E2E CI (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:39:33 +08:00

68 lines
1.9 KiB
Makefile

.PHONY: help install dev-install format lint type-check test test-cov clean docs build publish
# Default target
help: ## Show this help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install package dependencies
uv sync
dev-install: generate-api ## Install package with development dependencies
uv sync --all-extras
format: ## Format code with black and isort
uv run black .
uv run isort .
lint: ## Run linting with ruff
uv run ruff check .
type-check: ## Run type checking with pyright
uv run pyright
test: ## Run tests
uv run pytest
test-cov: ## Run tests with coverage
uv run pytest --cov=src/opensandbox --cov-report=html --cov-report=term
clean: ## Clean build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf .coverage
rm -rf htmlcov/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -name "*.pyc" -delete
docs: ## Generate documentation
cd docs && uv run sphinx-build -b html . _build/html
build: generate-api ## Build package with API generation
uv build
publish: ## Publish to PyPI (requires authentication)
uv publish
# Development workflow targets
check: format lint type-check ## Run all code quality checks
ci: generate-api dev-install check test ## Run CI pipeline locally
generate-api: ## Generate API clients from OpenAPI specs (using openapi-python-client)
uv run python scripts/generate_api.py
clean-api: ## Clean generated API client code
rm -rf src/opensandbox/api/execd/
rm -rf src/opensandbox/api/egress/
rm -rf src/opensandbox/api/lifecycle/
# Docker targets
docker-build: ## Build Docker image for development
docker build -t opensandbox-python-dev .
docker-test: ## Run tests in Docker container
docker run --rm -v $(PWD):/app opensandbox-python-dev make test