Coding agents¶
Coding agents run tests constantly, and usually on one Python version. pytest-uv gives them one command that covers every supported version, with plain pytest output they already know how to read:
uv run pytest --python-versions auto -x -q
Skills¶
The repository is a plugin marketplace that ships Agent Skills: instructions an agent loads when the task calls for them.
| Skill | Loads when the agent | Covers |
|---|---|---|
pytest-uv |
works in a project with pytest-uv or a [tool.pytest-uv] table, or is asked to test on several Python versions |
Running pytest --python-versions, reading its output, choosing between pytest-uv, a CI matrix and tox; routes to the skills below |
pytest-uv-setup |
adds pytest-uv to a project or configures it | Installing, choosing versions, [tool.pytest-uv], projects without uv.lock |
pytest-uv-ci |
writes or repairs a CI job | GitHub Actions, replacing a version matrix, caching, CI failures |
pytest-uv-debug |
sees a failure on some versions only, or an environment that fails to build | --lf, --pdb without xdist, stale environments, uv errors |
Claude Code¶
/plugin marketplace add jirikuncar/pytest-uv
/plugin install pytest-uv@pytest-uv
Update with /plugin marketplace update pytest-uv, or from a shell:
claude plugin marketplace update pytest-uv
claude plugin update pytest-uv@pytest-uv
Codex¶
codex plugin marketplace add jirikuncar/pytest-uv
codex plugin add pytest-uv@pytest-uv
Cursor¶
Run /add-plugin in the agent chat, or import the jirikuncar/pytest-uv repository
into a team marketplace. Cursor reads .cursor-plugin/plugin.json.
llms.txt¶
This site publishes llms.txt, a
summary with links to every page, and
llms-full.txt, every page in
one Markdown file. Point an agent without the skill at either one.
Instructions for AGENTS.md or CLAUDE.md¶
For an agent that reads a single instructions file, add a few lines to it:
## Tests
- `uv run pytest` runs the tests on the `.venv` Python.
- `uv run pytest --python-versions declared` runs them on every supported version
(`[tool.pytest-uv] versions`); run it before finishing a change.
- A failure on one version only: re-run with `--python-versions <that version>`.
Debug with `.pytest-uv/py<version>/bin/python -m pytest <test id>`.
- Do not pass `-n` together with `--python-versions`.
Why it suits agents¶
- One command, one exit code for every version, instead of a loop the agent has to write and parse.
- Fast repeat runs. After the first run the environments are reused, so running the full version set after each change is affordable.
- No changes to
.venv. The project environment the agent works in stays as it is. - Errors carry uv's message. A failed environment build stops pytest with uv's error, which the agent can act on.