[binutils-gdb] [pre-commit] Change check-gnu-style language to python

Tom de Vries vries@sourceware.org
Sat Jan 3 15:15:27 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0b91674b87e0873c9cdffa460aee58b5c9fd7f39

commit 0b91674b87e0873c9cdffa460aee58b5c9fd7f39
Author: Tom de Vries <tdevries@suse.de>
Date:   Sat Jan 3 16:15:22 2026 +0100

    [pre-commit] Change check-gnu-style language to python
    
    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.

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 3bed91e50f6..c3b85dacd76 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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/.*'


More information about the Binutils-cvs mailing list