To start the discussion and to make some points about how we want to utilize this in context. Also solving for the poor/unclear DX as noted here
I think we want to be able to both import the functions into bench console for one-time utility work and to run as a pre-commit / CLI functions.
One time that isn't the case is with migrating customizations, this PR allows for this kind of usage.
# client_app/customize.py
from test_utils import load_customizations
def after_migrate():
load_customizations()
The tools in conftest should probably work in a similar way and several of the other features we have planned.
I haven't done any testing to figure out how the pre-commit side of things would work, but I think we may want to expose a CLI interface to facilitate those functions.
To start the discussion and to make some points about how we want to utilize this in context. Also solving for the poor/unclear DX as noted here
I think we want to be able to both import the functions into bench console for one-time utility work and to run as a pre-commit / CLI functions.
One time that isn't the case is with migrating customizations, this PR allows for this kind of usage.
The tools in
conftest
should probably work in a similar way and several of the other features we have planned.I haven't done any testing to figure out how the pre-commit side of things would work, but I think we may want to expose a CLI interface to facilitate those functions.