Installs pre-commit hooks for OCaml projects that run dune fmt automatically
1# This file is generated by dune, edit dune-project instead
2opam-version: "2.0"
3synopsis: "Pre-commit hook initialization for OCaml projects"
4description:
5 "A CLI tool to initialize pre-commit hooks for OCaml projects. Sets up automatic formatting with dune fmt and removes Claude attribution from commit messages."
6maintainer: ["Thomas Gazagnaire <thomas@gazagnaire.org>"]
7authors: ["Thomas Gazagnaire <thomas@gazagnaire.org>"]
8license: "MIT"
9tags: ["org:blacksun" "cli" "git"]
10homepage: "https://tangled.org/gazagnaire.org/ocaml-precommit"
11bug-reports: "https://tangled.org/gazagnaire.org/ocaml-precommit/issues"
12depends: [
13 "dune" {>= "3.21"}
14 "ocaml" {>= "4.08"}
15 "cmdliner" {>= "1.2"}
16 "eio" {>= "1.0"}
17 "fmt" {>= "0.9"}
18 "nox-git" {>= "0.1"}
19 "re" {>= "1.0"}
20 "eio_main"
21 "nox-memtrace"
22 "monopam-info"
23 "nox-tty"
24 "vlog"
25 "mdx" {with-test}
26 "alcotest" {with-test}
27 "odoc" {with-doc}
28]
29build: [
30 ["dune" "subst"] {dev}
31 [
32 "dune"
33 "build"
34 "-p"
35 name
36 "-j"
37 jobs
38 "@install"
39 "@runtest" {with-test}
40 "@doc" {with-doc}
41 ]
42]
43dev-repo: "git+https://tangled.org/gazagnaire.org/ocaml-precommit"
44x-maintenance-intent: ["(latest)"]
45x-quality-build: "2026-04-15"
46x-quality-test: "2026-04-15"