From fef2db74b5a3d9b2f2862f515ba17d3a1cc02be6 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Fri, 24 Apr 2026 15:18:21 +0000 Subject: [PATCH] Trim AGENTS.md to just pre-commit rule only Clippy and miette conventions are already enforced by tooling. Use "just all" instead of "cargo test" since the justfile is the canonical check runner. Assisted-by: GLM-5.1 via pi --- AGENTS.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9a722e5..185ab96 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,11 +2,4 @@ ## Before committing -Always run `cargo test` and verify all tests pass before committing. -Never skip this step, even for small or "obvious" changes. - -## Rust conventions - -- Use `fs_err` instead of `std::fs` (enforced by clippy) -- Use miette's `bail!` and `ensure!` macros instead of `return Err(miette!(...))` -- Prefer `for` loops over `Iterator::for_each` for side-effects (enforced by clippy) +Always run `just all` and verify everything passes before committing. -- 2.54.0