From a2ce43b86c4acd6f20459c634b58547b6698f8db Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Tue, 28 Jul 2026 15:01:44 +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 23ddbe5..4488024 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 # pre-commit.ci sandbox prevents network calls; disable gha-workflow-linter skip: [gha-workflow-linter] autofix_commit_msg: |