Ask a question to get started
Enter to send•Shift+Enter new line
load_hooks_config( *, project_root: Path, workspace_trusted: bool, config_dir: Path | None
project_root
Path
Project root used for project precedence.
workspace_trusted
bool
Whether project-scoped hooks may be loaded.
config_dir
Path | None
None
Alternate user config directory.
paths
Sequence[Path] | None
Load, validate, merge, and hash Hooks v2 configuration.
Explicit trusted source paths in precedence order (highest first). When omitted, project hooks are included only for trusted workspaces, followed by user hooks.