mirror of
https://github.com/pydantic/pydantic-ai-harness.git
synced 2026-07-20 10:25:35 +00:00
Co-authored-by: Aditya Vardhan <adtyavrdhn@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
651 B
Makefile
34 lines
651 B
Makefile
.DEFAULT_GOAL := all
|
|
|
|
.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-extras --group lint
|
|
prek install --install-hooks
|
|
|
|
format:
|
|
uv run ruff format
|
|
uv run ruff check --fix --fix-only
|
|
|
|
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
|