79566625

Date: 2025-04-10 12:23:42
Score: 1.5
Natty:
Report link

although tox has a especific command for passing env variables into your tox environment, it didn't work for me.

I'm using python3.12 and tox>=4, and after adding passenv or pass_env to an specific environment in my tox.toml configuration, it simply ignores everything in it and return status OK.

The solution I've found was to pass my variables using set_env.

example:

export MY_ENV="test"
set_env = { MY_ENV="{env:MY_ENV}" } 

Doing that, everything worked fine.

Reasons:
  • Blacklisted phrase (1): it didn't work for me
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dpbm