ruff
ruff copied to clipboard
Feature request: linkcheck
I'm not sure if this is out of scope for ruff, but it would be awesome to have a means to auto-fix links that now redirect.
Like many repos, we at Astropy use Sphinx's link checker to ensure links are working. They are, but our logs are chock full of warning about link redirects. No one has the bandwidth to manually fix them all, so it would be great if a CI tool could do this automatically! Even if a ruff-based fix was implemented only for Python docstrings, it would be immensely useful.
Probably out of scope, since the only way to check it would be to actually lookup the link, which would be timely.
If it's out of scope for ruff, does anyone know of a tool that might accomplish this?
If it's out of scope for ruff, does anyone know of a tool that might accomplish this?
I think you should check out lychee. It can integrate with CI as well, but I am not sure if it auto-fixes links.