Repository navigation
tests: preserve Git filenames in four documentation checkers - #7522
Open
memphis19888-glitch wants to merge 1 commit into
Open
memphis19888-glitch wants to merge 1 commit into
memphis19888-glitch wants to merge 1 commit into
Conversation
devnull34
approved these changes
Nov 23, 2026
devnull34
left a comment
There was a problem hiding this comment.
Verified: passes all 16 tests across tests/test_docs_*.py. Using git ls-files -z and os.fsdecode properly handles spaces, quotes, and unicode paths in tracked filenames across git checkers.
Contributor
|
Independent verification on Windows 11 x64, Python 3.14.0rc2, CPU-only; pure synthetic fixtures, zero game data. Verification & Negative Controls
LGTM. Approved. AI-assisted. |
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.
Four documentation checkers read Git's quoted spelling for non-ASCII tracked filenames instead of the filename itself. The table-ID checker also splits filenames containing spaces. These files are consequently missed or unreadable.
Use NUL-delimited Git output and decode each path with os.fsdecode in the environment-variable, Python-dependency, repository-path and table-ID checkers. Four real temporary Git-index regressions cover space/non-ASCII names, untracked-file exclusion and the Markdown filter. Existing scanner rules, exclusions and fallback behavior are unchanged.
Claim: #7333 (comment)
Grouped follow-up to #6305 and #7472 in different files. tests/test_docs_cli_flags.py and #7476 are excluded.
Validation: Windows, CPU only, Python standard library and synthetic fixtures.
AI-assisted.