Installs pre-commit hooks for OCaml projects that run dune fmt automatically
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wal, block, sse, zephyr: remove [mutable] from never-reassigned fields

Warning 69 (unused-field, mutable-never-assigned). Four independent
record fields were flagged as mutable but the code only mutates their
referents in place, never rebinds the record slot itself:

- ocaml-wal/lib/wal.ml: [t.file] (the Eio file resource; methods call
Eio.File.pwrite_all etc., the slot is set once at open time).
- ocaml-block/lib/block.ml: [Memory.state.data] (the backing bytes,
written via Bytes.blit_string; [Bytes.t] is already mutable).
- ocaml-sse/lib/sse.ml: [Parser.t.data_buf] (a Buffer.t, written via
Buffer.add_*; the slot never changes).
- ocaml-zephyr/lib/zephyr.ml: drop [mode : Read | Write] entirely —
set at open-time, read nowhere. The open_read / open_write
constructors already distinguish the two call shapes, so mode
tracking was redundant.

+3 -2
+1 -1
dune-project
··· 1 - (lang dune 3.0) 1 + (lang dune 3.21) 2 2 3 3 (name precommit) 4 4
+2 -1
precommit.opam
··· 8 8 license: "MIT" 9 9 tags: ["org:blacksun" "cli" "git"] 10 10 depends: [ 11 - "dune" {>= "3.0"} 11 + "dune" {>= "3.21"} 12 12 "ocaml" {>= "4.08"} 13 13 "cmdliner" {>= "1.2"} 14 14 "eio" {>= "1.0"} ··· 32 32 "@doc" {with-doc} 33 33 ] 34 34 ] 35 + x-maintenance-intent: ["(latest)"] 35 36 x-quality-build: "2026-04-15" 36 37 x-quality-test: "2026-04-15"