1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2025-11-27 12:39:53 +01:00

Fix for commands_pre and commands_post for tox 4

This commit is contained in:
Lumir Balhar
2022-12-12 12:38:26 +01:00
committed by Miro Hrončok
parent a72e7ba713
commit ad6bcf5c19
2 changed files with 48 additions and 1 deletions

View File

@@ -96,7 +96,7 @@ def tox_add_env_config(env_conf, state):
# For print-deps-to and print-extras-to, use empty
# list of commands so the tox does nothing.
if opt.print_deps_to or opt.print_extras_to:
empty_commands = MemoryLoader(commands=[])
empty_commands = MemoryLoader(commands=[], commands_pre=[], commands_post=[])
env_conf.loaders.insert(0, empty_commands)