]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Include gdb in codespell check
authorTom de Vries <tdevries@suse.de>
Mon, 15 Jun 2026 11:24:08 +0000 (13:24 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 15 Jun 2026 11:24:08 +0000 (13:24 +0200)
Include the files in the gdb dir in the codespell pre-commit check.

.pre-commit-config.yaml

index d75468d0b48c696a011868c283f6734aa41bdc5d..80d15f8ee100e67d10a56ce73d01ca1d410107b9 100644 (file)
@@ -71,7 +71,7 @@ repos:
     rev: v2.4.2
     hooks:
     - id: codespell
-      files: '^(gdbsupport|gdbserver|gdb/(doc|stubs|features|nat|contrib|dwarf2|tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|debuginfod|gdb|go|guile|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/'
+      files: '^(gdbsupport|gdbserver|gdb/(doc|stubs|features|nat|contrib|dwarf2|tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|debuginfod|gdb|go|guile|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/|^gdb/[^/]*$'
       args: [--toml, gdb/pyproject.toml]
     - id: codespell
       name: codespell-log