AGENTS+CONTRACTS: describe the typecheck gate (trailing docs for #10)
The gate set grew to four with the mypy gate; AGENTS.md now names no count (gate list is the environment's to hold - .pi/verify.json) and CONTRACTS.md 1.6 lists the typecheck command alongside lint and format.
This commit is contained in:
1 parent
d94188e565
commit
799a810b60
2 files changed
+5
-3
No files matched your search
@@ -14,4 +14,4 @@ Single-context. See `docs/agents/domain.md`.
|
||||
|
||||
### Standards & gates
|
||||
|
||||
Read `CONTRACTS.md` §1 before writing any code — it is the binding coding standard; §2 maps module ownership. Gates live in `.pi/verify.json` — all three must be green before work counts as done (they run on settle and via `run_gates`). Foundation files change only through reviewed issues that record the motivation — `docs/adr/0001-reopen-foundation-freeze.md`.
|
||||
Read `CONTRACTS.md` §1 before writing any code — it is the binding coding standard; §2 maps module ownership. Gates live in `.pi/verify.json` — every gate must be green before work counts as done (they run on settle and via `run_gates`). Foundation files change only through reviewed issues that record the motivation — `docs/adr/0001-reopen-foundation-freeze.md`.
|
||||
+4
-2
@@ -33,8 +33,10 @@ Environment: `uv`, venv pinned by `.python-version` = `3.13`, `uv sync` installs
|
||||
5. **Lazy imports for heavy deps.** Import `faster_whisper`, `onnx_asr`, `sherpa_onnx`, `cv2`,
|
||||
`scenedetect`, `yt_dlp` *inside* the function/method that uses them (or inside the class
|
||||
`__init__`), so `import video_analyse` stays fast and optional extras stay optional.
|
||||
6. **Lint/format gates:** `uv run ruff check .` must pass (config in `pyproject.toml`:
|
||||
line-length 100, `E,W,F,I,UP,B,C4,SIM,RUF`, `B008` ignored). Run `uv run ruff format src tests`
|
||||
6. **Lint/type/format gates:** `uv run ruff check .` must pass (config in `pyproject.toml`:
|
||||
line-length 100, `E,W,F,I,UP,B,C4,SIM,RUF`, `B008` ignored). `uv run mypy src/` must pass
|
||||
(`[tool.mypy]` in `pyproject.toml`; per-module `ignore_missing_imports` only for untyped
|
||||
third-parties). Run `uv run ruff format src tests`
|
||||
before finishing; do not reformat `PLAN.md`/`CONTRACTS.md` (ruff formats their code fences and
|
||||
would create noise).
|
||||
7. **Tests:** `uv run pytest tests/ -q` must stay green. Add `tests/test_<module>.py` for your
|
||||
|
||||
Reference in new issue
Block a user