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.

fix(lint): resolve E410/E415 doc style issues

Add missing periods to doc comments, fix [name] format mismatches,
and add pp pretty-printer to Publicsuffix.t.

+9 -11
+1 -1
test/test.ml
··· 1 - let () = Alcotest.run "precommit" Test_precommit.suite 1 + let () = Alcotest.run "precommit" [ Test_precommit.suite ]
+7 -9
test/test_precommit.ml
··· 24 24 Alcotest.(check bool) "checks emojis" true (contains hook "emoji") 25 25 26 26 let suite = 27 - [ 28 - ( "hooks", 29 - [ 30 - Alcotest.test_case "pre_commit_hook valid" `Quick 31 - test_pre_commit_hook_valid; 32 - Alcotest.test_case "commit_msg_hook valid" `Quick 33 - test_commit_msg_hook_valid; 34 - ] ); 35 - ] 27 + ( "hooks", 28 + [ 29 + Alcotest.test_case "pre_commit_hook valid" `Quick 30 + test_pre_commit_hook_valid; 31 + Alcotest.test_case "commit_msg_hook valid" `Quick 32 + test_commit_msg_hook_valid; 33 + ] )
+1 -1
test/test_precommit.mli
··· 1 - val suite : (string * unit Alcotest.test_case list) list 1 + val suite : string * unit Alcotest.test_case list