Skip to content
Discussion options

You must be logged in to vote

The relevant plugin hooks for this are:

  • tox_add_env_config — called when environment configuration is being built. You can use this to register custom config keys or modify existing ones.
  • tox_on_install — called before executing an installation command. Receives tox_env, arguments, section, and of_type parameters, allowing you to intercept and modify what gets installed.

There is no dedicated hook for modifying deps directly — you'd use tox_add_env_config to register your config and tox_on_install to inject additional dependencies at install time.

The hook execution order follows the plugin loading order (entry points). See the plugin spec at src/tox/plugin/spec.py for the full list of …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gaborbernat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants