]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Change check-gnu-style language to python
authorTom de Vries <tdevries@suse.de>
Sat, 3 Jan 2026 15:15:22 +0000 (16:15 +0100)
committerTom de Vries <tdevries@suse.de>
Sat, 3 Jan 2026 15:15:22 +0000 (16:15 +0100)
Currently, the language of pre-commit hook check-gnu-style is script.

Change it to python, allowing us to specify termcolor and unidiff as
additional_dependencies.

.pre-commit-config.yaml

index 3bed91e50f69cf9ce062713e301ef34eb3621831..c3b85dacd769f5b3475d5ea1993d7c20b383f4d1 100644 (file)
@@ -91,7 +91,8 @@ repos:
       exclude: '.*/testsuite/.*'
     - id: check-gnu-style
       name: check-gnu-style
-      language: script
+      language: python
+      additional_dependencies: ['termcolor', 'unidiff']
       entry: gdb/contrib/check-gnu-style-pre-commit.sh
       files: '^(gdb(support|server)?)/.*\.(c|h|cc)$'
       exclude: '.*/testsuite/.*'