]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make gdb/python codespell-clean
authorTom Tromey <tom@tromey.com>
Thu, 3 Apr 2025 18:01:48 +0000 (12:01 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 4 Apr 2025 03:04:20 +0000 (21:04 -0600)
This cleans up the last codespell report in the Python directory and
adds gdb/python to pre-commit.

Approved-By: Tom de Vries <tdevries@suse.de>
.pre-commit-config.yaml
gdb/python/lib/gdb/dap/scopes.py

index 2a7aaa75198f8c01a16b4f592111388683dcfb67..27eaea059856fc2cd60978c8ca6daefec783c2a3 100644 (file)
@@ -69,7 +69,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))/'
+      files: '^(gdbsupport|gdbserver|gdb/(tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python))/'
       args: [--config, gdb/contrib/setup.cfg]
   - repo: local
     hooks:
index 1b98c4f49f7d8de30f895385d9ccbca2c0e51f76..3ac73680befb783662dd904b5e335308487d1cad 100644 (file)
@@ -22,7 +22,7 @@ from .sources import make_source
 from .startup import in_gdb_thread
 from .varref import BaseReference
 
-# Map DAP frame IDs to scopes.  This ensures that scopes are re-used.
+# Map DAP frame IDs to scopes.  This ensures that scopes are reused.
 frame_to_scope = {}