pytest-pep723

Author:

Rohit Goswami

Overview

pytest-pep723 is a pytest plugin that statically verifies PEP 723 inline script metadata covers every import in your dispatched scripts.

When you use uv run to dispatch scripts with inline metadata blocks, only the declared dependencies are available at runtime. If you add an import readcon but forget to add readcon to the deps block, the script fails at dispatch time. This plugin catches those gaps in CI.

Start with the quickstart or the validation tutorial.

Tutorials

How-to Guides

How-to Guides

Reference

Contributing