From 2131052868d4090b1b83340ea8990224ab85f6f6 Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Tue, 28 Jul 2026 15:59:15 +0100 Subject: [PATCH] Chore: Disable pre-commit.ci autofix PRs pre-commit.ci autofix pushes fix commits onto contributor branches. Those commits come from the bot, so a fully signed branch gains an unsigned commit and the signing and DCO posture stops being uniform. The pushes also race local work. The remote moves ahead of the contributor's checkout, so the next push is rejected and needs an unplanned pull or rebase. They also mask defects. A lint failure that should fail the pull request and prompt a deliberate fix is silently corrected instead, so the underlying problem never reaches review. Setting autofix_prs to false keeps pre-commit.ci as a reporting gate. Every hook still runs and still fails the pull request. Fixes then happen locally, where the full hook set, the signing identity and the DCO sign-off all apply. autofix_commit_msg stays in place. It is inert once autofix is off, but removing it would enlarge the diff for no benefit. Co-authored-by: Claude Signed-off-by: Matthew Watkins --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6e6acf3..acad61e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,7 @@ # SPDX-FileCopyrightText: 2025 The Linux Foundation ci: + autofix_prs: false autofix_commit_msg: | Chore: pre-commit autofixes