hooks.post-edit¶
Run the fixers over the edited file; never block an edit.
Best-effort by design: every outcome exits 0 and says nothing, because a formatter problem must never block an edit. The gate, not the hook, is the arbiter; this only saves round trips.
Imports are never removed here: an edit in flight legitimately adds an import before the code that uses it, and a hook firing between the two edits would delete it (measured, twice in one session). The full clean, unused imports included, belongs to the stop hook and the gate.
Hidden: this task is not listed by fm --list, --tree or completion — it runs like any other when named.
| Parameter | Type | Default | Description |
|---|---|---|---|
<event> |