mirror of
https://github.com/pydantic/pydantic-ai-harness.git
synced 2026-07-21 02:45:34 +00:00
Set up pydantic-harness as a publishable Python package using hatchling, with CI (lint, test across Python 3.10-3.13) and automated PyPI releases on tag pushes via OIDC trusted publishing — mirroring pydantic-handlebars.
32 lines
605 B
Makefile
32 lines
605 B
Makefile
.PHONY: .uv .prek install format lint typecheck test testcov all
|
|
|
|
.uv:
|
|
@uv --version || echo 'Please install uv: https://docs.astral.sh/uv/getting-started/installation/'
|
|
|
|
.prek:
|
|
@prek --version || echo 'Please install prek: https://github.com/j178/pre-commit-rs'
|
|
|
|
install: .uv .prek
|
|
uv sync --frozen --all-groups
|
|
prek install --install-hooks
|
|
|
|
format:
|
|
uv run ruff format
|
|
uv run ruff check --fix
|
|
|
|
lint:
|
|
uv run ruff format --check
|
|
uv run ruff check
|
|
|
|
typecheck:
|
|
uv run pyright
|
|
|
|
test:
|
|
uv run pytest
|
|
|
|
testcov:
|
|
uv run coverage run -m pytest
|
|
uv run coverage report
|
|
|
|
all: format lint typecheck testcov
|