wntrblm / nox

Flexible test automation for Python
https://nox.thea.codes
Apache License 2.0
1.3k stars 148 forks source link

feat: support None to remove envvars #812

Closed henryiii closed 4 months ago

henryiii commented 5 months ago

Followup to #804. Setting env={"NOCOLOR": None} will unset the value if it exists in the outer environment.

henryiii commented 4 months ago

I got a thumbs up, anyone want to do a review? Nice to have an approval. ;). (This will likely require #815 to be rebased once it's in)

edgarrmondragon commented 4 months ago

Should there be a documentation update for this?

henryiii commented 4 months ago

I did add it to the docs. It's only present in nox/sessions.py, but that's the only place env= is documented. It shows up in the docs page, though.