Closed
Description
First off, the uv.lock support seems to be mostly working, so great work! I've ran into a few edge cases that either need documentation or fixes.
This is the first one: I know this is kinda nonsense, but if you set
[testenv]
runner = uv-venv-lock-runner
it's automatically inherited and I've got a target
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files
which fails with:
$ uvx --with tox-uv tox -re pre-commit
pre-commit: remove tox env folder /Users/hynek/FOSS/attrs/.tox/pre-commit
pre-commit: venv> /Users/hynek/Library/Caches/uv/archive-v0/u1hhc39Y_1D6r8mvsDrOq/bin/uv venv -p /Users/hynek/Library/Caches/uv/archive-v0/u1hhc39Y_1D6r8mvsDrOq/bin/python --allow-existing /Users/hynek/FOSS/attrs/.tox/pre-commit
pre-commit: uv-sync> uv sync --frozen
pre-commit: commands[0]> pre-commit run --all-files
pre-commit: failed with pre-commit is not allowed, use allowlist_externals to allow it
IOW it silently ignores the skip_install
and deps
options.
If you don't want to support skip_install/deps with uv-venv-lock-runner
(which is totally fair enough!) there should be more explicit error messages + docs, I think?