ruff icon indicating copy to clipboard operation
ruff copied to clipboard

Feature request: linkcheck

Open nstarman opened this issue 1 year ago • 2 comments

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.

nstarman avatar May 19 '24 22:05 nstarman

Probably out of scope, since the only way to check it would be to actually lookup the link, which would be timely.

augustelalande avatar May 20 '24 02:05 augustelalande

If it's out of scope for ruff, does anyone know of a tool that might accomplish this?

nstarman avatar May 20 '24 13:05 nstarman

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.

santacodes avatar May 26 '24 17:05 santacodes