scripts/dev-setup.sh now installs the contributor tools into .venv-dev, and the git hooks run from there. This frees .venv for uv, which will pin apm (#517): uv sync removes every package that is not in its lock, so it would remove the tools the hooks need.
After merging, re-run scripts/dev-setup.sh in every existing clone, before #517 lands. Until then its hooks keep using .venv. The script leaves the old .venv in place.
The comments in requirements-dev.txt and images/ci/Dockerfile still say .venv. Both files are inputs of the ci image, so #517 updates them together with its own change to that image.
Verified
scripts/dev-setup.sh in a fresh clone: creates .venv-dev and no .venv. pre-commit run --all-files passes with the tools from .venv-dev/bin.
scripts/dev-setup.sh from main, then from this branch, in one clone: all three hooks move from .venv/bin to .venv-dev/bin. The new test for this fails against the old script.
With both directories present: git status is clean, and scripts/check_tarball.py passes on a built Collection that contains neither.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code
## What and why
Closes #516
`scripts/dev-setup.sh` now installs the contributor tools into `.venv-dev`, and the git hooks run from there. This frees `.venv` for uv, which will pin apm (#517): `uv sync` removes every package that is not in its lock, so it would remove the tools the hooks need.
**After merging, re-run `scripts/dev-setup.sh` in every existing clone, before #517 lands.** Until then its hooks keep using `.venv`. The script leaves the old `.venv` in place.
The comments in `requirements-dev.txt` and `images/ci/Dockerfile` still say `.venv`. Both files are inputs of the `ci` image, so #517 updates them together with its own change to that image.
## Verified
- `scripts/dev-setup.sh` in a fresh clone: creates `.venv-dev` and no `.venv`. `pre-commit run --all-files` passes with the tools from `.venv-dev/bin`.
- `scripts/dev-setup.sh` from `main`, then from this branch, in one clone: all three hooks move from `.venv/bin` to `.venv-dev/bin`. The new test for this fails against the old script.
- With both directories present: `git status` is clean, and `scripts/check_tarball.py` passes on a built Collection that contains neither.
- `python3 -m unittest discover -s tests/scripts`: 334 tests pass.
- `ansible-test sanity`: passed in the pre-push hook.
## Not verified
- A real `uv sync` next to `.venv-dev`; #517 covers it.
- Linked worktrees and macOS.
- Molecule was not run locally.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code
uv uses .venv as its project environment, and `uv sync --frozen` removes
every package that is not in uv.lock. The tools the git hooks need would
go with it, so they get a directory of their own.
Re-running scripts/dev-setup.sh switches the hooks of an older clone and
leaves its .venv alone. Ignore rules and prunes cover both directories.
Refs: #516
Assisted-by: Claude Code
CODEOWNERS rules
requested review from Defame1297 2026-12-04 21:13:22 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #516
scripts/dev-setup.shnow installs the contributor tools into.venv-dev, and the git hooks run from there. This frees.venvfor uv, which will pin apm (#517):uv syncremoves every package that is not in its lock, so it would remove the tools the hooks need.After merging, re-run
scripts/dev-setup.shin every existing clone, before #517 lands. Until then its hooks keep using.venv. The script leaves the old.venvin place.The comments in
requirements-dev.txtandimages/ci/Dockerfilestill say.venv. Both files are inputs of theciimage, so #517 updates them together with its own change to that image.Verified
scripts/dev-setup.shin a fresh clone: creates.venv-devand no.venv.pre-commit run --all-filespasses with the tools from.venv-dev/bin.scripts/dev-setup.shfrommain, then from this branch, in one clone: all three hooks move from.venv/binto.venv-dev/bin. The new test for this fails against the old script.git statusis clean, andscripts/check_tarball.pypasses on a built Collection that contains neither.python3 -m unittest discover -s tests/scripts: 334 tests pass.ansible-test sanity: passed in the pre-push hook.Not verified
uv syncnext to.venv-dev; #517 covers it.NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code