Skip to content
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

Support an environment variable override for nox.options.default_venv_backend #776

Closed
edgarrmondragon opened this issue Feb 21, 2024 · 1 comment · Fixed by #780
Closed

Comments

@edgarrmondragon
Copy link
Contributor

edgarrmondragon commented Feb 21, 2024

How would this feature be useful?

Often times it's easier to set an environment variable than passing the same argument to multiple commands.

Describe the solution you'd like

A new environment variable that's used as the default value of --default-venv-backend when present.

Some possible names: NOX_DEFAULT_VENV_BACKEND or NOXDEFAULTVENVBACKEND

Describe alternatives you've considered

Something like

# noxfile.py

import os

import nox

nox.options.default_venv_backend = os.environ.get("NOX_DEFAULT_VENV_BACKEND", "virtualenv")

Anything else?

If this accepted, I can start working on a PR :)

@henryiii
Copy link
Collaborator

NOX_DEFAULT_VENV_BACKEND sounds good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants