[binutils-gdb] [pre-commit] Remove stages setting for two hooks
Tom de Vries
vries@sourceware.org
Wed Jun 17 19:40:25 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b636e400028ea7928c1cd280121422bb9f42a0b1
commit b636e400028ea7928c1cd280121422bb9f42a0b1
Author: Tom de Vries <tdevries@suse.de>
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 <tom@tromey.com>
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
More information about the Binutils-cvs
mailing list