[binutils-gdb] [pre-commit] Add yamllint hook

Tom de Vries via Gdb-cvs <[email protected]> Tue, 28 Jul 2026 07:44:01 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <20260728074401.A073D4BB24EE__6302.31865668378$1785224652$gmane$org@sourceware.org>
https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dfc3afcdce424=
5d5a084bc84b8f048c7c610b0d8d

commit fc3afcdce4245d5a084bc84b8f048c7c610b0d8d
Author: Tom de Vries <[email protected]>
Date:   Tue Jul 28 09:43:51 2026 +0200

    [pre-commit] Add yamllint hook
   =20
    Add pre-commit check linting .pre-commit-config.yaml using yamllint.
   =20
    [1] https://github.com/adrienverge/yamllint

Diff:
---
 .pre-commit-config.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 733f00a4481..66cbc117dfc 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -101,6 +101,13 @@ repos:
         args: [--trust-plugins]
         files: '^gdb/testsuite/.*\.(exp|tcl)$'
=20
+  # Yaml hooks.
+  - repo: https://github.com/adrienverge/yamllint.git
+    rev: v1.38.0
+    hooks:
+      - id: yamllint
+        files: '^\.pre-commit-config.yaml$'
+
   # Local hooks.
   - repo: local
     hooks: