Make gdb/python codespell-clean

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>
This commit is contained in:
Tom Tromey 2025-04-03 12:01:48 -06:00
parent b135c926c5
commit ba310c98c8
2 changed files with 2 additions and 2 deletions

View 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:

View 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 = {}