-
Type:
Task
-
Resolution: Done
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: Infrastructure
-
None
-
🔵 Done
-
Python Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
`just setup-tests encryption` calls `uv run setup-tests.py` which then creates a venv to setup tests. If this command is run within an active venv, `uv` warns about it and suggest running with `–active`:
warning: `VIRTUAL_ENV=/Users/alex.clark/Developer/django-mongodb-cli/.venv` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead
There's currently no way to pass that arg to `just setup-tests`. Suggest adding an environment variable to the supported list of env vars that if set will run `uv run --active`. e.g. ACTIVE=1
Definition of done
ACTIVE=1 conditionally runs `uv run --active`.
Pitfalls
None