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>
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)$'
extensions = ["exp", "tcl"]
+commands=["expect", "testsuite/tclint-plugin.py"]
+
[tool.tclint.style]
# Used by tclfmt.
indent = "mixed,4,8"