Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Loading