nox
nox copied to clipboard
Enhance environment variables passing
Closes #253
Introduced a new parameter include_invocation_env_vars
to the session.run
related methods. It can be a boolean or an iterable of vars that should be included from the nox invocation environment. Some env vars (inspired by tox are always passed in to ensure proper functionality of stdlib functions and pip.
Thanks for doing the review! I agree @crwilcox's proposal. I think it addresses the original issue sufficiently, is clearer and easier to understand. This should be ready for another look.