From: Stefano Rivera Date: Sat, 5 Apr 2025 18:50:16 -0400 Subject: Run tox commands via envpython Otherwise we need to list the commands in allowlist_externals, with our system virtualenv tox approach. Forwarded: not-needed --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 752a91e..13c1043 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -127,7 +127,7 @@ requires = ["tox >= 4.22"] [tool.tox.env_run_base] depends = ["lint"] package = "wheel" -commands = [["pytest", { replace = "posargs", extend = true }]] +commands = [["{envpython}", "-m", "pytest", { replace = "posargs", extend = true }]] dependency_groups = ["test"] set_env = { PYTHONWARNDEFAULTENCODING = "1" } @@ -135,4 +135,4 @@ set_env = { PYTHONWARNDEFAULTENCODING = "1" } depends = [] deps = ["pre-commit"] package = "skip" -commands = [["pre-commit", "run", "-a"]] +commands = [["{envpython}", "-m", "pre_commit", "run", "-a"]]