[binutils-gdb] [pre-commit] Bump tclint to 0.8.0

Tom de Vries via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <20260324152943.80AAA4BB3BDA__20972.9959884257$1774366192$gmane$org@sourceware.org>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6fdfbd43bb85e3c5749a08494a5ae4af506dc4fb

commit 6fdfbd43bb85e3c5749a08494a5ae4af506dc4fb
Author: Tom de Vries <[email protected]>
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 <[email protected]>

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"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.