Skip to content

docs: update deprecated PEP URLs to peps.python.org#5110

Closed
Bojun-Vvibe wants to merge 2 commits intopsf:mainfrom
Bojun-Vvibe:agent/psf_black-1776713148
Closed

docs: update deprecated PEP URLs to peps.python.org#5110
Bojun-Vvibe wants to merge 2 commits intopsf:mainfrom
Bojun-Vvibe:agent/psf_black-1776713148

Conversation

@Bojun-Vvibe
Copy link
Copy Markdown

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 canonical https://peps.python.org/pep-XXXX/ form. Touches docs/the_black_code_style/current_style.md, docs/usage_and_configuration/the_basics.md, and docs/guides/using_black_with_other_tools.md.

Why

The python.org/dev/peps/ URLs are legacy and redirect to peps.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 in CHANGES.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:67 was 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 --stat confirms 3 files, +7/-7 with no other content modified. Each replaced URL is reachable at the canonical peps.python.org host.

Risk

Low — docs-only string substitution; the old URLs still redirect, so there is no broken-link risk for cached references.

BojunChai and others added 2 commits April 21, 2026 03:25
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).
@JelleZijlstra JelleZijlstra added the ci: skip news Pull requests that don't need a changelog entry. label Apr 20, 2026
@Bojun-Vvibe Bojun-Vvibe closed this by deleting the head repository Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: skip news Pull requests that don't need a changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants