pytest-check-links
pytest-check-links copied to clipboard
pytest plugin that checks URLs
This follows the advice offered by the `DeprecationWarning`: ``` .../pytest_check_links/plugin.py:428: DeprecationWarning: Testing an element's truth value will raise an exception in future versions. Use specific 'len(elem)' or 'elem is not...
Would it make sense to add support for checking json and yaml files in this plugin? Many websites store data (and links) in those format and checking for those would...
### Problem For files-at-rest, it would be nice if we could show inline annotations for findings, a la CodeQL, etc. ### Proposed Solution Investigate whether this _already_ works. We could...
## Description `requests_cache` is unconditionally imported at `uncache_url`, which is called by `fetch_with_retries` on retry. ## Reproduce `pytest --check-links` on a document containing a broken link that returns retry-after header,...
Hi, when a failed link is found a short log of the failed link is shown but after that comes a very long log of all the functions that failed...
Hi, noticed that the test markes a redirect link as failed. For example [https://il.pycon.org/2017/](https://il.pycon.org/2017/). Can try to fix if you can point me to the right direction.
It'd be nice if it included the line number in the report of failed link.
## Description The Link check fails if a parenthesis symbol, i.e. "(" or ")", is part of the URL. ## Reproduce e.g. try: https://en.wikipedia.org/wiki/Cohesion_(computer_science) Currently, this will be recognised as...
Resolves #141
### Problem Absolute path links are more portable in documentation engines, e.g. in Sphinx documentation, but I can't use them with this plugin. ### Proposed Solution Add `--check-links-allow-absolute` flag, and...