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

+1 -1
View File
@@ -27,7 +27,7 @@ allow list. It fails the build for:
ansible-galaxy dereferences FILE symlinks while building, so a symlink to a file reaches
the archive as a regular file with the target's content and this check cannot see it. The
`Refuse symlinks in the source tree` step of .gitea/workflows/build.yml is the only guard
against that. Its `find` prunes ./.venv and ./.git only because both are in galaxy.yml
against that. Its `find` prunes ./.git, ./.venv and ./.venv-dev only because they are in galaxy.yml
`build_ignore` (or excluded by ansible-galaxy itself, as .git is): the two lists must stay
in step, and tests/scripts/test_check_tarball.py fails when a pruned directory is not
ignored by the build.