[binutils-gdb] [pre-commit] Drop types_or filtering for tclint
Tom de Vries
vries@sourceware.org
Wed Jun 17 19:40:10 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=836522f582b848831e310cfcdcec078ea61436dd
commit 836522f582b848831e310cfcdcec078ea61436dd
Author: Tom de Vries <tdevries@suse.de>
Date: Wed Jun 17 21:40:03 2026 +0200
[pre-commit] Drop types_or filtering for tclint
The pre-commit tclint hook filters files using:
...
types_or: [file]
files: '^gdb/testsuite/.*\.(exp|tcl)$'
...
The types_or setting overrides the default file type of the hook. In the case
of tclint, there's no such default.
So this setting is not required, and causes additional filtering to run.
It was probably added by using one of the python hooks as a starting point.
Remove it.
Approved-By: Tom Tromey <tom@tromey.com>
Diff:
---
.pre-commit-config.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a5b526b1eec..902e58d4d8c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -123,5 +123,4 @@ repos:
hooks:
- id: tclint
args: [--trust-plugins]
- types_or: [file]
files: '^gdb/testsuite/.*\.(exp|tcl)$'
More information about the Binutils-cvs
mailing list