diff --git a/Makefile b/Makefile index 2a01bfc..95c600c 100644 --- a/Makefile +++ b/Makefile @@ -2,17 +2,18 @@ PKG := deploy_gcp tee -.PHONY: help lint format format-check typecheck check +.PHONY: help lint format format-check typecheck test check help: @echo "Targets:" - @echo " check lint + format-check + typecheck (what CI runs)" + @echo " check lint + format-check + typecheck + test (what CI runs)" @echo " lint ruff check" @echo " format ruff format (writes changes)" @echo " format-check ruff format --check" @echo " typecheck ty check" + @echo " test unittest discovery (repo-wide)" -check: lint format-check typecheck +check: lint format-check typecheck test lint: uv run ruff check $(PKG) @@ -25,3 +26,8 @@ format-check: typecheck: uv run ty check $(PKG) + +# -b buffers each test's stdout/stderr and replays it only on failure, so +# passing runs stay quiet (the code under test prints progress + warnings). +test: + uv run python -m unittest discover -b