canonical_hooks_bytes(
config: HooksConfig,
*,
groups: Mapping[HookEvent, Sequence[SourcedGroup]] || Name | Type | Description |
|---|---|---|
config* | HooksConfig | |
groups | Mapping[HookEvent, Sequence[SourcedGroup]] | None | Default: None |
Serialize configuration into a stable byte representation.
Validated Hooks v2 configuration.
Matching sourced groups. When supplied, each group additionally records its non-file origin and environment overlay, so enabling a plugin that contributes hooks changes the snapshot id. Groups from the project and user files serialize identically either way.