( framework: string | null | undefined, ctx: FrameworkHookContext )
| 191 | ) => Promise<FrameworkHookResult | void>; |
| 192 | |
| 193 | export async function runFrameworkHook( |
| 194 | framework: string | null | undefined, |
| 195 | ctx: FrameworkHookContext |
| 196 | ): Promise<FrameworkHookResult | void> { |
| 197 | const hook = framework |
| 198 | ? frameworkHooks[framework as PythonFramework] |
| 199 | : undefined; |
| 200 | return hook?.(ctx); |
| 201 | } |
| 202 | |
| 203 | const frameworkHooks: Partial<Record<PythonFramework, FrameworkHook>> = { |
| 204 | django: async ({ |
no outgoing calls
no test coverage detected