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.

Upgrade to ocamlformat 0.29.0; fix csvt/sexpt streaming; reformat

- Update .ocamlformat to 0.29.0 across all 591 files
- csvt: reuse single Buffer.t for field reads (no alloc per field)
- sexpt: Obj members decoded from stream into Dict, typed Variant GADT
- Reformat all source files for 0.29.0

+5 -4
+1 -1
.ocamlformat
··· 1 - version = 0.28.1 1 + version = 0.29.0
+4 -3
bin/main.ml
··· 168 168 List.map 169 169 (fun d -> 170 170 let s = Precommit.status_in_dir ctx d in 171 - if s.is_ocaml_project && s.is_git_repo then begin 172 - if not (s.has_pre_commit && s.has_commit_msg && s.has_ocamlformat) 171 + if s.is_ocaml_project && s.is_git_repo then 172 + begin if 173 + not (s.has_pre_commit && s.has_commit_msg && s.has_ocamlformat) 173 174 then incr missing 174 175 else if s.formatting_disabled then incr missing 175 176 else incr ok 176 - end; 177 + end; 177 178 [ 178 179 Tty.Span.text d; 179 180 check_span s.has_pre_commit;