[binutils-gdb] [pre-commit] Bump codespell to 2.4.2
Tom de Vries
vries@sourceware.org
Fri Mar 6 07:43:47 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4acc488d0d7770b8806ba2b4455a3779ff15e498
commit 4acc488d0d7770b8806ba2b4455a3779ff15e498
Author: Tom de Vries <tdevries@suse.de>
Date: Fri Mar 6 08:43:42 2026 +0100
[pre-commit] Bump codespell to 2.4.2
Ran "pre-commit autoupdate".
Doing "pre-commit run --all-files codespell" still passes.
Now that ignore-multiline-regex is fixed, enable ignoring blocks of code using
codespell:ignore-begin/codespell:ignore-end.
Diff:
---
.pre-commit-config.yaml | 2 +-
gdb/contrib/setup.cfg | 10 ++--------
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index aaf0716f602..173746f8cc3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -68,7 +68,7 @@ repos:
types_or: [file]
files: '^gdb/.*\.py(\.in)?$'
- repo: https://github.com/codespell-project/codespell
- rev: v2.4.1
+ rev: v2.4.2
hooks:
- id: codespell
files: '^(gdbsupport|gdbserver|gdb/(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)))/'
diff --git a/gdb/contrib/setup.cfg b/gdb/contrib/setup.cfg
index 5541a0196dd..4793a6264af 100644
--- a/gdb/contrib/setup.cfg
+++ b/gdb/contrib/setup.cfg
@@ -9,11 +9,5 @@ dictionary = gdb/contrib/codespell-dictionary.txt,-
# Ignore all URLs.
uri-ignore-words-list = *
-# This codespell issue (
-# https://github.com/codespell-project/codespell/issues/3381 ) reports the
-# need to have support for ignoring blocks of code.
-# A suggestion there is to use ignore-multiline-regex, which does work, but
-# has a bug: using -w drops all newlines in the updated files (
-# https://github.com/codespell-project/codespell/issues/3642 ).
-# Consequently, disabled. To be enabled when the bug is fixed.
-#ignore-multiline-regex = codespell:ignore-begin.*codespell:ignore-end
+# How to ignore blocks of code.
+ignore-multiline-regex = codespell:ignore-begin.*codespell:ignore-end
More information about the Binutils-cvs
mailing list