chore(dev): move the dev tools from .venv to .venv-dev
Build / build (pull_request) Successful in 34s
Molecule / select (pull_request) Successful in 3s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / lint (pull_request) Successful in 1m49s

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
This commit is contained in:
Defame1297 committed 2026-12-04 20:45:49 +00:00
1 parent b7b763e1fa
commit f62097a748
12 files changed
+51 -23

No files matched your search

+3 -3
View File
@@ -94,13 +94,13 @@ jobs:
# ansible-galaxy dereferences symlinks when it builds, so a symlink in the source tree
# reaches the archive as a regular file with the target's content, where
# scripts/check_tarball.py cannot see it. Refuse them in the tree instead: this step
# is the only guard against a file symlink. The two -prune paths below (./.venv,
# ./.git) are skipped only because the build skips them too (galaxy.yml build_ignore,
# is the only guard against a file symlink. The -prune paths below (./.git, ./.venv,
# ./.venv-dev) are skipped only because the build skips them too (galaxy.yml build_ignore,
# and ansible-galaxy's own .git exclusion): the two lists must stay in step, and
# tests/scripts/test_check_tarball.py fails when a pruned directory is not ignored.
- name: Refuse symlinks in the source tree
run: |
links="$(find . -path ./.git -prune -o -path ./.venv -prune -o -type l -print)"
links="$(find . -path ./.git -prune -o -path ./.venv -prune -o -path ./.venv-dev -prune -o -type l -print)"
if [ -n "$links" ]; then
echo "::error::symlinks in the source tree would be dereferenced into the Collection archive:"
echo "$links"