.PHONY: install test lint format check clean build publish publish-test

install:
	uv sync

test:
	uv run pytest -v --cov=db_cli

lint:
	uv run ruff check db_cli/
	uv run mypy db_cli/

format:
	uv run ruff format db_cli/
	uv run ruff check --fix db_cli/

check: lint test

clean:
	rm -rf dist/ build/ *.egg-info

build: clean
	uv build

publish: build
	uv publish

publish-test: build
	uv publish --publish-url https://test.pypi.org/legacy/
