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)))/'
# 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