]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Add yamllint hook
authorTom de Vries <tdevries@suse.de>
Tue, 28 Jul 2026 07:43:51 +0000 (09:43 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 28 Jul 2026 07:43:51 +0000 (09:43 +0200)
Add pre-commit check linting .pre-commit-config.yaml using yamllint.

[1] https://github.com/adrienverge/yamllint

.pre-commit-config.yaml

index 733f00a4481ec7edc3be4696c05db746d3b6c438..66cbc117dfc6432fbc877f58decf68e7055ef578 100644 (file)
@@ -101,6 +101,13 @@ repos:
         args: [--trust-plugins]
         files: '^gdb/testsuite/.*\.(exp|tcl)$'
 
+  # 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: