Skip to main content

Check links in files

Project description

pytest-check-links

pytest plugin that checks URLs for HTML-containing files.

Supported files:

  • .html
  • .rst
  • .md (TODO: select renderer)
  • .ipynb (requires nbconvert)

Install:

pip install pytest-check-links

Use:

pytest --check-links mynotebook.ipynb

TODO:

  • pick a markdown renderer (probably commonmark) or make the markdown renderer pluggable
  • options for validating links (allow absolute links, only remote or local, etc.)
  • check internal links (#anchors)
  • find URLs in Python docstrings
  • test myself, obvs!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_check_links-0.3.4.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

pytest_check_links-0.3.4-py2.py3-none-any.whl (7.7 kB view details)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page