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"
9homepage: "https://tangled.org/gazagnaire.org/ocaml-precommit"
10bug-reports: "https://tangled.org/gazagnaire.org/ocaml-precommit/issues"
11depends: [
12 "dune" {>= "3.0"}
13 "ocaml" {>= "4.08"}
14 "cmdliner" {>= "1.2"}
15 "ocamlformat" {with-dev-setup}
16 "alcotest" {with-test}
17 "odoc" {with-doc}
18]
19build: [
20 ["dune" "subst"] {dev}
21 [
22 "dune"
23 "build"
24 "-p"
25 name
26 "-j"
27 jobs
28 "@install"
29 "@runtest" {with-test}
30 "@doc" {with-doc}
31 ]
32]