(
store: Store,
*,
config: str,
color: bool,
hook_type: str,
hook_dir: str | None,
skip_on_missing_config: bool,
args: Sequence[str],
)
| 257 | |
| 258 | |
| 259 | def hook_impl( |
| 260 | store: Store, |
| 261 | *, |
| 262 | config: str, |
| 263 | color: bool, |
| 264 | hook_type: str, |
| 265 | hook_dir: str | None, |
| 266 | skip_on_missing_config: bool, |
| 267 | args: Sequence[str], |
| 268 | ) -> int: |
| 269 | retv, stdin = _run_legacy(hook_type, hook_dir, args) |
| 270 | _validate_config(retv, config, skip_on_missing_config) |
| 271 | ns = _run_ns(hook_type, color, args, stdin) |
| 272 | if ns is None: |
| 273 | return retv |
| 274 | else: |
| 275 | return retv | run(config, store, ns) |
no test coverage detected