Problem
--run-tests runs bare pytest, which fails in uv-managed projects where pytest is only available via uv run pytest. The review reports:
Running pytest on related test files...
Tests: 0 passed, 0 failed, 0 errors (0.02s) — ERROR
The system Python doesn't have pytest installed — it's a dev dependency managed by uv in the project's virtualenv.
Proposed Fix
Detect uv-managed projects (e.g., check for pyproject.toml with [tool.uv] or a .venv created by uv) and use uv run pytest instead of bare pytest. Fallback chain:
uv run pytest (if uv project detected)
pytest (current behavior)
Context
Discovered while reviewing benthomasson/ftl-sdlc-loop#10 — all 48 tests pass with uv run pytest but code-review review-loop --run-tests reports ERROR.
Problem
--run-testsruns barepytest, which fails in uv-managed projects where pytest is only available viauv run pytest. The review reports:The system Python doesn't have pytest installed — it's a dev dependency managed by uv in the project's virtualenv.
Proposed Fix
Detect uv-managed projects (e.g., check for
pyproject.tomlwith[tool.uv]or a.venvcreated by uv) and useuv run pytestinstead of barepytest. Fallback chain:uv run pytest(if uv project detected)pytest(current behavior)Context
Discovered while reviewing benthomasson/ftl-sdlc-loop#10 — all 48 tests pass with
uv run pytestbutcode-review review-loop --run-testsreports ERROR.