Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,12 @@ Example:
If two hooks run in the same priority group and both mutate the same files (or depend on shared state), results are undefined.
Use separate priorities to avoid overlap.

!!! note "Hooks modifying files without a non-zero exit code"

If a hook modifies files without emitting a non-zero exit code (e.g. `ruff format`), the priority group as a whole will fail.
It is not possible for prek to attribute the failure to a specific hook in the group which modified files.
Use separate priorities for clearer failure attribution.
Comment thread
j178 marked this conversation as resolved.
Resolved

!!! note "`require_serial` is different"

`require_serial: true` prevents concurrent invocations of the *same hook*.
Expand Down
Loading