From c985a13719c0f97317c70fc0211daebabedac902 Mon Sep 17 00:00:00 2001 From: GadgetAI <232155002+labgadget015-dotcom@users.noreply.github.com> Date: Thu, 27 Aug 2026 06:25:52 +0000 Subject: [PATCH] docs: note .venv fix (include-system-site-packages=true) so test commands work --- .devcontainer/devcontainer-lock.json | 19 +++++++++++++++++++ CLAUDE.md | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 .devcontainer/devcontainer-lock.json diff --git a/.devcontainer/devcontainer-lock.json b/.devcontainer/devcontainer-lock.json new file mode 100644 index 0000000..791c34a --- /dev/null +++ b/.devcontainer/devcontainer-lock.json @@ -0,0 +1,19 @@ +{ + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": { + "version": "2.17.0", + "resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:25b9f05705ffba7dbe503230ac76081419306f8c8bc88e0ce78c4ecd99a0c78c", + "integrity": "sha256:25b9f05705ffba7dbe503230ac76081419306f8c8bc88e0ce78c4ecd99a0c78c" + }, + "ghcr.io/devcontainers/features/git:1": { + "version": "1.3.8", + "resolved": "ghcr.io/devcontainers/features/git@sha256:fd75977de13a9979000e0e78baf949adb0ca71d2398995fa22e0a36d7e7e7fe2", + "integrity": "sha256:fd75977de13a9979000e0e78baf949adb0ca71d2398995fa22e0a36d7e7e7fe2" + }, + "ghcr.io/devcontainers/features/github-cli:1": { + "version": "1.1.1", + "resolved": "ghcr.io/devcontainers/features/github-cli@sha256:94879eebb6a0e4e2f197de9f12db7427cb4a25b82d93c55239ce8c8fc394a1b4", + "integrity": "sha256:94879eebb6a0e4e2f197de9f12db7427cb4a25b82d93c55239ce8c8fc394a1b4" + } + } +} diff --git a/CLAUDE.md b/CLAUDE.md index 539270b..b52df6c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -23,6 +23,8 @@ source .venv/bin/activate pip install -r requirements.txt # install all deps if venv is missing packages ``` +> ⚠️ **Venv misconfiguration (fixed in place 2026-08-27).** On this host `.venv/bin/python` is a symlink to `/usr/bin/python3`, and the venv shipped with `include-system-site-packages = false` — so `source .venv/bin/activate && pytest` failed with `No module named pytest`. The fix is one reversible line in `.venv/pyvenv.cfg`: set `include-system-site-packages = true`. After that the documented flow works and `pytest`/`ruff` resolve from the system install (full suite: **1492 passed, 2 skipped; 77.65% coverage**). If a fresh checkout reverts it, re-flip that one flag — **do NOT `rm -rf .venv`** (rebuilds are blocked). Fallback without the venv: `/usr/bin/python3 -m pytest tests/ -q -p no:cacheprovider`. + ```bash pytest tests/ -v # full suite (unit + integration, coverage on by default) pytest tests/unit/test_core.py -v # single unit test file