chore(dev): move the dev tools from .venv to .venv-dev
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:
1 parent
b7b763e1fa
commit
f62097a748
12 files changed
+51
-23
No files matched your search
@@ -9,7 +9,7 @@ held by review until an offline link check exists.
|
||||
## The clone
|
||||
|
||||
- **Run `scripts/dev-setup.sh` once per clone, and again after a change to `requirements-dev.txt`, its
|
||||
lock `requirements-dev.lock`, `requirements.yml` or the hook types.** It creates `.venv` with the
|
||||
lock `requirements-dev.lock`, `requirements.yml` or the hook types.** It creates `.venv-dev` with the
|
||||
pinned tools on the Python named in `.python-version`, installs the collections of `requirements.yml`
|
||||
into `.ansible/collections`, and installs the git hooks (pre-commit, commit-msg, pre-push) with the
|
||||
virtualenv first on their `PATH`.
|
||||
|
||||
Reference in new issue
Block a user