Installs pre-commit hooks for OCaml projects that run dune fmt automatically
1(lang dune 3.21)
2(using mdx 0.4)
3
4(name precommit)
5
6(generate_opam_files true)
7
8(license MIT)
9(authors "Thomas Gazagnaire <thomas@gazagnaire.org>")
10(maintainers "Thomas Gazagnaire <thomas@gazagnaire.org>")
11
12(source (tangled gazagnaire.org/ocaml-precommit))
13
14(package
15 (name precommit)
16 (synopsis "Pre-commit hook initialization for OCaml projects")
17 (tags (org:blacksun cli git))
18 (description
19 "A CLI tool to initialize pre-commit hooks for OCaml projects. Sets up \
20 automatic formatting with dune fmt and removes Claude attribution from \
21 commit messages.")
22 (depends
23 (ocaml (>= 4.08))
24 (cmdliner (>= 1.2))
25 (eio (>= 1.0))
26 (fmt (>= 0.9))
27 (nox-git (>= 0.1))
28 (re (>= 1.0))
29 eio_main
30 nox-memtrace
31 monopam-info
32 nox-tty
33 vlog
34 (mdx :with-test)
35 (alcotest :with-test)))