careful-address-89803
10/22/2022, 4:18 AMcareful-address-89803
10/22/2022, 5:00 PM@rule
async def run_rule(
request: UniqueICsRequest, python_setup: PythonSetup
) -> InterpreterConstraints:
...
This works well enough, but is some extra boilerplate. Thoughts/opinions on constructing this automatically? so you could do something like:
RuleRunner(
rules=[
...
CallableRuleHelper(_my_rule_helper),
],
...
)
To me, it feels similar to adding a QueryRule.
An alternative I could see would be to make a parallel to RuleRunner.request
that executes rule_helpershappy-kitchen-89482
10/23/2022, 10:53 PMbitter-ability-32190
10/23/2022, 10:55 PMbitter-ability-32190
10/23/2022, 10:56 PMwitty-crayon-22786
10/25/2022, 4:45 PMrun_rule_with_mocks
code, since the way it executes is identical