[binutils-gdb] [pre-commit] Remove stages setting for two hooks

Tom de Vries via Gdb-cvs <[email protected]> Wed, 17 Jun 2026 19:40:25 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <20260617194025.E31B54BA2E3E__44252.1035017975$1781725241$gmane$org@sourceware.org>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b636e400028ea7928c1cd280121422bb9f42a0b1

commit b636e400028ea7928c1cd280121422bb9f42a0b1
Author: Tom de Vries <[email protected]>
Date:   Wed Jun 17 21:40:03 2026 +0200

    [pre-commit] Remove stages setting for two hooks
    
    Some hooks have a setting:
    ...
    stages: [pre-commit]
    ...
    but since that's identical to the default setting:
    ...
    default_stages: [pre-commit]
    ...
    we can just remove those.
    
    Approved-By: Tom Tromey <[email protected]>

Diff:
---
 .pre-commit-config.yaml | 2 --
 1 file changed, 2 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5be2034b26f..b250cb1aea6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -97,13 +97,11 @@ repos:
       files: '^(gdb(support|server)?)/.*\.(c|h|cc)$'
       exclude: '.*/testsuite/.*'
       verbose: true
-      stages: [pre-commit]
     - id: check-whitespace
       name: check-whitespace
       language: unsupported_script
       entry: gdb/contrib/check-whitespace-pre-commit.py
       files: '^(gdb(support|server)?)/.*$'
-      stages: [pre-commit]
     - id: pre-commit-setup
       name: pre-commit-setup
       language: python