-
-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Labels
Description
Current Behavior
I was giving a training today and I wanted to show how nox can be configured to reuse existing virtual environments.
This is what I wrote in noxfile.py
:
nox.options.reuse_venv = True
Unfortunately nox does not raise any error and continues to run ! I did not realize it but if you look carefully it actually tells us that it (re)creates the env :
This is the correct way to tell nox to reuse virtual environments for all sessions :
nox.options.reuse_existing_virtualenvs = True
And we can check it that way
Expected Behavior
I would expect that an unsupported option in noxfile.py
nox.options.reuse_venv = True
would raise an error when running nox
Steps To Reproduce
see above
Environment
- OS: Windows 10
- Python: 3.11.4
- Nox: 2024.4.15
Anything else?
See #488 for related recent PR