From 3211f327ef1564a253bd92bf1441ad0ea8400260 Mon Sep 17 00:00:00 2001 From: Chris Guidry Date: Tue, 4 Aug 2026 07:24:13 -0400 Subject: [PATCH] Make the fmt hook fix files instead of checking them The fmt hook ran cargo fmt --check, which fails the commit and leaves the files unformatted, so the retry fails the same way until someone runs cargo fmt by hand. Now the hook runs cargo fmt: pre-commit still fails the first commit when files change, and the retry goes through. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01HvctyUUkzw7PcNrjCGG6dF --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e4f5cb..cd2f8a1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: hooks: - id: fmt name: cargo fmt - entry: cargo fmt --check + entry: cargo fmt language: system types_or: [rust, toml] pass_filenames: false -- 2.51.2