Repository navigation
Fix case-insensitive README content type inference - #343
Merged
Merged
Conversation
henryiii
force-pushed
the
fix/readme-extension-case
branch
from
October 21, 2026 14:11
6eed5ea to
0d6b5b8
Compare
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.
README filenames such as
README.MDandREADME.Rstcurrently raiseConfigurationError, although the pyproject.toml specification requires case-insensitive.mdand.rstmatching: https://packaging.python.org/en/latest/specifications/pyproject-toml/#readme .Normalize the content-type comparison while preserving the original filename for file access. Eight regression cases check extension case, the original path, UTF-8 contents, and the emitted description content type and payload.
On unchanged upstream, six cases fail and two lowercase controls pass. With the fix, all 414 tests pass on Linux arm64 with Python 3.12. Ruff and formatting checks pass. Full-project mypy diagnostics are unchanged (one existing
comparison-overlaperror); focused checking of the changed files passes.