As follow-up to #2035 (review), we should change the linkcheck setup so that it check for new links in PRs, so that PR reviewers know that all newly added links are valid.
Code of Conduct
I am aware that participants in this repository must follow the PSF Code of Conduct.
I'm not aware of any tool or function that would support only blocking on new URLs, but we can add it separately. This PR is about not blocking working PRs on a broken linkcheck, including things such as getting changes from accepted PEPs linkcheck.
Then, linkcheck_ignore could be populated with all those known URLs either right on the module level or from within the setup() function, but only in the context of PRs (and merge queues). This way, the PR runs would exclude checks against everything that used to be known prior to the PR merge, and new things would still be checked.
I’m interested in contributing to this issue and have reviewed the proposed approach. Before I start, could a maintainer confirm whether this is still available to work on, given the existing expression of interest, and whether the intended direction is to reuse the previous linkcheck output in PR and merge queue runs so only newly introduced URLs are checked?
I would verify the current workflow and add focused tests before opening a PR.
We prefer contributions from people interested in becoming contributors, or even interesting in using their time, energy and intellect to solve a problem. A human interface to a robotic tool adds more burden than help to the few reviewers.
This is very much not trivial (see 7 linked PRs in the sidebar), and it is quite annoying that CI is red all the time, so I had a go at this in gh-2182. The high-level approach follows what @webknjaz suggested.
Activity
webknjaz commented on May 4, 2026
Copy of context @ #2035 (comment)
Copy of context @ #2035 (comment)
harshitethic commented on Aug 30, 2026
MugdhoAI commented on Oct 22, 2026
I’m interested in contributing to this issue and have reviewed the proposed approach. Before I start, could a maintainer confirm whether this is still available to work on, given the existing expression of interest, and whether the intended direction is to reuse the previous linkcheck output in PR and merge queue runs so only newly introduced URLs are checked?
I would verify the current workflow and add focused tests before opening a PR.
merwok commented on Oct 22, 2026
We prefer contributions from people interested in becoming contributors, or even interesting in using their time, energy and intellect to solve a problem. A human interface to a robotic tool adds more burden than help to the few reviewers.
rgommers commented on Nov 11, 2026
This is very much not trivial (see 7 linked PRs in the sidebar), and it is quite annoying that CI is red all the time, so I had a go at this in gh-2182. The high-level approach follows what @webknjaz suggested.