From: Tom de Vries Date: Sat, 3 Jan 2026 15:15:22 +0000 (+0100) Subject: [pre-commit] Change check-gnu-style language to python X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b91674b87e0873c9cdffa460aee58b5c9fd7f39;p=thirdparty%2Fbinutils-gdb.git [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 --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/.*'