docs: update deprecated PEP URLs to peps.python.org#5110
Closed
Bojun-Vvibe wants to merge 2 commits intopsf:mainfrom
Closed
docs: update deprecated PEP URLs to peps.python.org#5110Bojun-Vvibe wants to merge 2 commits intopsf:mainfrom
Bojun-Vvibe wants to merge 2 commits intopsf:mainfrom
Conversation
The python.org/dev/peps/ URLs are legacy and redirect to peps.python.org. Use the canonical URLs to match the convention already used elsewhere in the codebase (e.g. CHANGES.md, src/black/files.py, src/black/linegen.py).
for more information, see https://pre-commit.ci
tusharsadhwani
approved these changes
Apr 20, 2026
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.
Repo: psf/black (⭐ 38000)
Type: docs
Files changed: 3
Lines: +7/-7
What
Replaces 7 occurrences of the legacy
https://www.python.org/dev/peps/pep-XXXX/URLs in the documentation with the canonicalhttps://peps.python.org/pep-XXXX/form. Touchesdocs/the_black_code_style/current_style.md,docs/usage_and_configuration/the_basics.md, anddocs/guides/using_black_with_other_tools.md.Why
The
python.org/dev/peps/URLs are legacy and redirect topeps.python.org, which the PSF launched as the official PEP host. The repo already uses the canonical form in source comments (src/black/files.py,src/black/linegen.py) and inCHANGES.md, so this aligns the docs with existing convention, removes an unnecessary HTTP redirect for readers, and matches the form linked from the official Python documentation.A single occurrence in
src/black/strings.py:67was intentionally left untouched to keep this PR docs-only and below the 3-file scope.Testing
Pure URL substitution inside Markdown link targets — no code, build, or rendering changes.
git diff --statconfirms 3 files, +7/-7 with no other content modified. Each replaced URL is reachable at the canonicalpeps.python.orghost.Risk
Low — docs-only string substitution; the old URLs still redirect, so there is no broken-link risk for cached references.