1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
.DEFAULT_GOAL := all
sources = pydantic_settings tests
.PHONY: install
install:
uv sync --all-extras --all-groups
.PHONY: refresh-lockfiles
refresh-lockfiles:
@echo "Updating uv.lock file"
uv lock -U
.PHONY: format
format:
uv run ruff check --fix $(sources)
uv run ruff format $(sources)
.PHONY: lint
lint:
uv run ruff check $(sources)
uv run ruff format --check $(sources)
.PHONY: mypy
mypy:
uv run mypy pydantic_settings
.PHONY: test
test:
uv run coverage run -m pytest --durations=10
.PHONY: testcov
testcov: test
@echo "building coverage html"
@uv run coverage html
.PHONY: all
all: lint mypy testcov
|