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.

feat: add memtrace to all binaries, switch merlint commands to Eio

Add memtrace instrumentation to merlint, prune, crow, bottler, agent,
precommit, and uniboot. Refactor merlint's Command module from
Unix.open_process_in to Eio.Process.spawn for proper fiber scheduling.
Log external commands at INFO level (-v) and command output at DEBUG
level (-vv). Show dune build stderr in -vv mode instead of suppressing
with 2>/dev/null.

+4 -2
+1 -1
bin/dune
··· 1 1 (executable 2 2 (name main) 3 3 (public_name precommit) 4 - (libraries precommit cmdliner eio_main vlog tty fmt monopam-info)) 4 + (libraries precommit cmdliner eio_main vlog tty fmt monopam-info memtrace))
+3 -1
bin/main.ml
··· 468 468 let default = Vlog.setup "precommit" in 469 469 Cmd.group info ~default [ init_cmd; status_cmd; check_cmd; fix_cmd ] 470 470 471 - let () = exit (Cmd.eval main_cmd) 471 + let () = 472 + Memtrace.trace_if_requested (); 473 + exit (Cmd.eval main_cmd)