-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a single character shortcut for --no-reuse-existing-virtualenvs #624
Comments
Related to #488 |
The CLI supports multicharacter short options and does not currently use |
|
I don't see any blockers to do this. Any thoughts @wntrblm/nox? |
By default environments are destroyed and recreated, so wouldn't this be a noop? |
@crwilcox Not if the user has set in their nox.options.reuse_existing_virtualenvs = True |
Alright. So, to me this sort of feels like an antipattern, but since we already have the long flag, I'd be okay with adding -nr. Basically, I don't know how prevalent setting args in noxfile.py really is, but as it is allowed, that might not be that relevant ;) |
The |
How would this feature be useful?
A common way to use Nox that saves a lot of time when re-running sessions over and over by avoiding recreating venvs is to set:
You can see the
pip
developers use this:When dependencies do change, the developer can then run:
Given this can be a very common work flow, avoiding having to type out
--no-reuse-existing-virtualenvs
on the command line would be a great improvement to UX.A note on
tox
What I'm describing above is also the default workflow for
tox
users. Many people moving fromtox
will be familiar with this workflow. (e.g.tox
re-uses venvs by default, andtox -r
is an opt-in recreation).Describe the solution you'd like
Add a new alias for
--no-reuse-existing-virtualenvs
, for example-C
for "Create"The text was updated successfully, but these errors were encountered: