From 6e19846724383d9551664b65d91005525057b720 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 27 Sep 2026 23:49:29 +0300 Subject: [PATCH] docs: document the 100% coverage gate in AGENTS.md --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index 754acbf..27864b1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,6 +9,7 @@ Recipes live in the `justfile` — run `just --list` to see them; this section o Almost everything runs through Docker Compose: the app and Postgres come up together, and running tests/migrations outside Docker is **not** the supported path (`just install` and `just lint` are the exceptions — they run on the host). Inside the container, raw commands look like `uv run pytest ...`, `uv run alembic ...`. - `just test` cycles the DB (downgrade to `base`, upgrade to `head`) before pytest and tears the stack down before and after. Pass pytest args through, e.g. `just test tests/test_decks.py::test_post_decks -x`. +- pytest runs with `--cov=. --cov-report term-missing --cov-fail-under=100` (`pyproject.toml`), so `just test` fails unless tests cover every line of new code. - `just migration -m "message"` autogenerates an Alembic revision **against an already-upgraded DB** — the recipe enforces this, so don't run autogen by hand. - `just lint` runs `eof-fixer`, `ruff format`, `ruff check --fix`, then `ty check`.