CI: Enable XML in codespell and fix typos- #685 - #7900
Open
echoix wants to merge 2 commits into
Open
Conversation
Enable XML file type in codespell by removing it from exclude_types in .pre-commit-config.yaml. Fix all typos found in XML files: - gui/wxpython/xml/wxgui_items.xml: coordinate (1 occurrence) - gui/wxpython/core/testsuite/data/test_toolboxes_menudata_ref.xml: coordinate (2 occurrences) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Enabling codespell for XML also covers SVG (identify tags it as an XML type). gui/images/splash_screen.svg embeds a base64-encoded JPEG that codespell misreads as misspelled words (e.g. "nd", "Ot", "tHt"). Skip *.svg via codespell's own skip list so the exclusion also applies when codespell is run directly, not just through pre-commit.
ninsbl
approved these changes
Sep 5, 2026
echoix
enabled auto-merge (squash)
September 5, 2026 22:20
echoix
disabled auto-merge
September 5, 2026 22:20
echoix
enabled auto-merge (squash)
September 5, 2026 22:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enables XML file type in codespell, fixes typos found in XML files, and skips SVG files (which codespell/identify treats as XML) to avoid false positives from embedded base64 image data.
Changes
xmlfromexclude_typesin.pre-commit-config.yaml.gui/wxpython/xml/wxgui_items.xml(1 occurrence)gui/wxpython/core/testsuite/data/test_toolboxes_menudata_ref.xml(2 occurrences)*.svgto codespell'sskiplist inpyproject.toml. SVG is tagged as an XML type byidentify, so enabling XML also unexcluded SVG;gui/images/splash_screen.svgembeds a base64 JPEG that codespell misread as typos (e.g. "nd", "Ot", "tHt"), which failed CI.Testing
pre-commit run codespell --all-filespasses locally.