.PHONY: help setup build publish format deps-check

setup: ## Install Python dependencies with uv.
	uv sync

build: format ## Build the package.
	rm -rf dist
	uv build

publish: build ## Publish the package to pypi.org.
	uv publish

format: ## Format Python sources with Ruff.
	uv run ruff format .

deps-check: ## Scan locked dependencies for vulnerabilities with OSV Scanner.
	osv-scanner scan source --lockfile=uv.lock

help: ## Show this help.
	@awk 'BEGIN {FS = ":.*##"; printf "\nDJANGO auth CLI CERTIC:\n\n"} /^[a-zA-Z0-9_-]+:.*##/ {printf "  %-20s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
