From 8fb9718bbf08db2cb159abfd58c73932ba044232 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 13 Nov 2026 15:36:45 -0500 Subject: [PATCH] docs(agents): require nix fmt before committing --- AGENTS.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7a403a4e0..489a03c55 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,6 +51,11 @@ the same pinned toolchain. The declared versions and settings live in [gleam.toml](gleam.toml), [pyproject.toml](pyproject.toml), and the [Nix development shell](nix/devShells.nix). +Run `nix fmt` before committing any change, including prose-only changes. It +runs every formatter configured in [nix/treefmt.nix](nix/treefmt.nix), and CI +fails when it would change a file. Prettier rewraps Markdown at 80 columns, so +edited wiki and instruction pages usually need it too. + Run the checks relevant to the changed language: - Gleam: `gleam check`, `gleam format src test`, and `test/gleam-lint.sh`. @@ -67,8 +72,8 @@ full selection used by CI. The lint script's optional `--review` and `--all` profiles are described in [Gleam lint](robot-docs/gleam-lint.md). Keep generated lint, audit, and benchmark reports under `/tmp`. Do not commit -retrospective cleanup inventories. A prose-only change needs link, heading, and -whitespace checks, not new tests that assert documentation wording. +retrospective cleanup inventories. A prose-only change needs formatting, link, +heading, and whitespace checks, not new tests that assert documentation wording. ## Choose and run tests -- knotmirror 0.0.1