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.

Add comprehensive tests for ocaml-agent

- Add TODO parsing tests (status conversion, JSON parsing, completion tracking)
- Add config file parsing tests (YAML decode, defaults, missing fields)
- Add TODO mirror tests (markdown format/parse, roundtrip, file I/O)
- Add runtime config tests (default tools, default config)
- Export Todo_mirror module through Agent for testing

36 tests covering all core functionality.

+1 -1
+1 -1
test/test_precommit.ml
··· 20 20 let test_commit_msg_hook_valid () = 21 21 let hook = Precommit.commit_msg_hook in 22 22 Alcotest.(check bool) "is shell script" true (String.sub hook 0 2 = "#!"); 23 - Alcotest.(check bool) "filters claude lines" true (contains hook "claude"); 23 + Alcotest.(check bool) "filters AI lines" true (contains hook "Co-Authored-By"); 24 24 Alcotest.(check bool) "checks emojis" true (contains hook "emoji") 25 25 26 26 let suite =