]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Require pyyaml for pre-commit-setup hook
authorTom de Vries <tdevries@suse.de>
Mon, 5 Jan 2026 17:30:49 +0000 (18:30 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 5 Jan 2026 17:30:49 +0000 (18:30 +0100)
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>
.pre-commit-config.yaml

index c3b85dacd769f5b3475d5ea1993d7c20b383f4d1..37fd083ced37208136717588009d1aa1ee67bbb5 100644 (file)
@@ -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