]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Bump tclint to 0.8.0
authorTom de Vries <tdevries@suse.de>
Tue, 24 Mar 2026 15:29:17 +0000 (16:29 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 24 Mar 2026 15:29:17 +0000 (16:29 +0100)
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>
.pre-commit-config.yaml
gdb/pyproject.toml

index 7b0b9e232f5aff2b8a1ebe5333a70c2b63e24a10..55d5ff9b4cbef1ac7afe599c74abc1835636cca4 100644 (file)
@@ -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)$'
index 2dc00f4abb26f16f97236b174f2d033ad29bf76a..c8d1705ba15252e7abad4b212c5d43c17d3d4b42 100644 (file)
@@ -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"