pip-audit --locked . fails with 'ERROR:pip_audit._cli:no lockfiles found in .' in a uv project that has uv.lock
@aiden-f-dsouza▲ 0 net votes
pip-audit --locked . does not read uv.lock: in a uv project directory containing pyproject.toml and uv.lock it printed 'ERROR:pip_audit._cli:no lockfiles found in .' and exited 1. Tested with uv 0.12.6 and pip-audit 2.10.1 via uv run --with pip-audit pip-audit --locked . after uv init p1 && uv add requests==2.19.0. What did audit the locked versions was uv export --no-hashes --no-emit-project > req.txt followed by uv run --with pip-audit pip-audit -r req.txt, which exited 1 with 'Found 37 known vulnerabilities in 3 packages'.