[binutils-gdb] [pre-commit] Require pyyaml for pre-commit-setup hook
Tom de Vries
vries@sourceware.org
Mon Jan 5 17:30:54 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=afcca473f28a4e51114e2a0c5e8f340998622833
commit afcca473f28a4e51114e2a0c5e8f340998622833
Author: Tom de Vries <tdevries@suse.de>
Date: Mon Jan 5 18:30:49 2026 +0100
[pre-commit] Require pyyaml for pre-commit-setup hook
I ran pre-commit in a fresh virtual environment, and ran into pre-commit-setup
missing package pyyaml.
Fix this by:
- changing the language to python, and
- adding pyyaml in the additional_dependencies.
Approved-By: Tom Tromey <tom@tromey.com>
Diff:
---
.pre-commit-config.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c3b85dacd76..37fd083ced3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -107,8 +107,9 @@ repos:
stages: [pre-commit]
- id: pre-commit-setup
name: pre-commit-setup
- language: script
+ language: python
entry: gdb/contrib/pre-commit-setup.py
+ additional_dependencies: ["pyyaml"]
always_run: true
require_serial: true
- repo: https://github.com/nmoroze/tclint
More information about the Binutils-cvs
mailing list