[binutils-gdb] [pre-commit] Add codespell-clean gdb/testsuite dirs

Tom de Vries vries@sourceware.org
Tue May 20 09:06:08 GMT 2025


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

commit 06b112bfcd307f1f7f9531617097b3e028e09088
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue May 20 11:05:54 2025 +0200

    [pre-commit] Add codespell-clean gdb/testsuite dirs
    
    The following gdb/testsuite subdirs are codespell-clean:
    ...
    $ for d in gdb/testsuite/gdb.*; do \
          echo -n "$d:"; \
          codespell --config ./gdb/contrib/setup.cfg $d \
              | wc -l; \
      done 2>&1 \
      | grep :0
    gdb/testsuite/gdb.ctf:0
    gdb/testsuite/gdb.dap:0
    gdb/testsuite/gdb.gdb:0
    gdb/testsuite/gdb.go:0
    gdb/testsuite/gdb.modula2:0
    gdb/testsuite/gdb.objc:0
    gdb/testsuite/gdb.opencl:0
    gdb/testsuite/gdb.perf:0
    gdb/testsuite/gdb.replay:0
    gdb/testsuite/gdb.server:0
    gdb/testsuite/gdb.testsuite:0
    ...
    
    Add them to the pre-commit configuration.
    
    Approved-By: Tom Tromey <tom@tromey.com>

Diff:
---
 .pre-commit-config.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7cb7008f2df..a71f7eb62f2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -70,7 +70,7 @@ repos:
     rev: v2.4.1
     hooks:
     - id: codespell
-      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli))/'
+      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|gdb|go|modula2|objc|opencl|perf|replay|server|testsuite)))/'
       args: [--config, gdb/contrib/setup.cfg]
   - repo: local
     hooks:


More information about the Binutils-cvs mailing list