[binutils-gdb] [pre-commit] Bump tclint to 0.8.0
Tom de Vries
vries@sourceware.org
Tue Mar 24 15:29:43 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6fdfbd43bb85e3c5749a08494a5ae4af506dc4fb
commit 6fdfbd43bb85e3c5749a08494a5ae4af506dc4fb
Author: Tom de Vries <tdevries@suse.de>
Date: Tue Mar 24 16:29:17 2026 +0100
[pre-commit] Bump tclint to 0.8.0
In v0.8.0, there's an update in how local python plugins are handled.
In order to use plugin gdb/testsuite/tclint-plugin.py, a new command line
option --trust-plugins is needed.
However, after doing so, we can move adding the plugin from
.pre-commit-config.yaml to pyproject.toml.
Also, a plugin for the expect dialect was added, so enable that one as well.
Approved-By: Tom Tromey <tom@tromey.com>
Diff:
---
.pre-commit-config.yaml | 4 ++--
gdb/pyproject.toml | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7b0b9e232f5..55d5ff9b4cb 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -113,9 +113,9 @@ repos:
always_run: true
require_serial: true
- repo: https://github.com/nmoroze/tclint
- rev: v0.7.0
+ rev: v0.8.0
hooks:
- id: tclint
- args: [--commands, gdb/testsuite/tclint-plugin.py]
+ args: [--trust-plugins]
types_or: [file]
files: '^gdb/testsuite/.*\.(exp|tcl)$'
diff --git a/gdb/pyproject.toml b/gdb/pyproject.toml
index 2dc00f4abb2..c8d1705ba15 100644
--- a/gdb/pyproject.toml
+++ b/gdb/pyproject.toml
@@ -23,6 +23,8 @@ ignore = ["line-length"]
extensions = ["exp", "tcl"]
+commands=["expect", "testsuite/tclint-plugin.py"]
+
[tool.tclint.style]
# Used by tclfmt.
indent = "mixed,4,8"
More information about the Binutils-cvs
mailing list