lint:
	uv run ruff format --check .
	uv run ruff check .

format:
	uv run ruff format .
	uv run ruff check --fix .

typecheck:
	uv run mypy mistralai

test:
	uv run pytest

test-unit:
	uv run pytest -m "not integration and not fuzz and not benchmark"

coverage:
	uv run pytest --cov=mistralai --cov-report=term-missing

fuzz:
	uv run pytest -m fuzz

test-integration:
	uv run pytest -m integration

perf:
	uv run pytest -m benchmark

installdeps:
	uv sync

build-bundle:
	rm -rf "$(CURDIR)/dist"
	./scripts/build_bundle_wheel.sh "$(CURDIR)/dist"
	./scripts/verify_bundle_wheel.sh "$$(ls dist/mistralai_agents_sdk_alpha-*.whl)"
