]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Bump codespell to 2.4.2
authorTom de Vries <tdevries@suse.de>
Fri, 6 Mar 2026 07:43:42 +0000 (08:43 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 6 Mar 2026 07:43:42 +0000 (08:43 +0100)
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.

.pre-commit-config.yaml
gdb/contrib/setup.cfg

index aaf0716f602ea721ddb1cbe7228c0c6adcf3f752..173746f8cc33d1925907a97cf116797a0209fb19 100644 (file)
@@ -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)))/'
index 5541a0196ddeed4a9a22374f6390cfa8fbedb74f..4793a6264afbb5d95f79f41746b90079693e4ad8 100644 (file)
@@ -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