Installs pre-commit hooks for OCaml projects that run dune fmt automatically
1(lang dune 3.0)
2
3(name precommit)
4
5(generate_opam_files true)
6
7(license MIT)
8(authors "Thomas Gazagnaire <thomas@gazagnaire.org>")
9(maintainers "Thomas Gazagnaire <thomas@gazagnaire.org>")
10
11(package
12 (name precommit)
13 (synopsis "Pre-commit hook initialization for OCaml projects")
14 (description
15 "A CLI tool to initialize pre-commit hooks for OCaml projects. Sets up \
16 automatic formatting with dune fmt and removes Claude attribution from \
17 commit messages.")
18 (depends
19 (ocaml (>= 4.08))
20 (cmdliner (>= 1.2))
21 (eio (>= 1.0))
22 (fmt (>= 0.9))
23 (git (>= 0.1))
24 (re (>= 1.0))
25 (alcotest :with-test)))