chore(dev): move the dev tools from .venv to .venv-dev #516
Notifications
Due Date
No due date set.
Blocks
#517 chore(apm): pin apm with uv
Mortis/Kamino
Reference: Mortis/Kamino#516
Reference in new issue
Block a user
Part of #499
Problem
scripts/dev-setup.shinstalls the contributor tools (pre-commit, ansible-lint and the rest ofrequirements-dev.lock) into.venv. apm will be pinned with uv, and uv uses.venvas its project environment:uv sync --frozenremoves every package that is not inuv.lock, so it would remove the tools the git hooks need. The dev tools need their own directory first.Out of scope: adding
pyproject.tomloruv.lock, and changing any tool version.Proposal
scripts/dev-setup.shcreates and uses.venv-dev, and the git hooks put.venv-dev/binfirst onPATH..venv-dev. It leaves an existing.venvalone..venvalso covers.venv-dev, and keeps covering.venv, which uv will use. Find the places withgit grep -nF .venv..venv-dev.requirements-dev.txtandimages/ci/Dockerfileas they are. Both are inputs of theciimage, and the ticket that pins apm with uv changes that image anyway.Acceptance criteria
scripts/dev-setup.shcreates.venv-devand no.venv, andpre-commit run --all-filespasses with the tools from.venv-dev/bin.scripts/dev-setup.shmakes the git hooks use.venv-dev/binand no longer.venv/bin. A test intests/scripts/test_dev_setup.pycovers it.git statusis clean and the Collection tarball contains neither (scripts/check_tarball.pypasses on a build).python3 -m unittest discover -s tests/scriptspasses.docs/contributing/setup.mdnames.venv-dev.