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 (source ...) stanzas to subtree dune-projects

38 subtrees lacked a (source ...) stanza in their dune-project, so
their generated .opam files had no dev-repo: field. That broke
downstream tooling that uses dev-repo to identify the subtree
(notably the root.opam external-dep filter, which couldn't tell
internal packages from external ones).

Add (source (tangled gazagnaire.org/<subtree>)) to each, matching
the URL configured in sources.toml. dune regenerates dev-repo:,
homepage: and bug-reports: in every affected .opam.

+5
+2
dune-project
··· 9 9 (authors "Thomas Gazagnaire <thomas@gazagnaire.org>") 10 10 (maintainers "Thomas Gazagnaire <thomas@gazagnaire.org>") 11 11 12 + (source (tangled gazagnaire.org/ocaml-precommit)) 13 + 12 14 (package 13 15 (name precommit) 14 16 (synopsis "Pre-commit hook initialization for OCaml projects")
+3
precommit.opam
··· 7 7 authors: ["Thomas Gazagnaire <thomas@gazagnaire.org>"] 8 8 license: "MIT" 9 9 tags: ["org:blacksun" "cli" "git"] 10 + homepage: "https://tangled.org/gazagnaire.org/ocaml-precommit" 11 + bug-reports: "https://tangled.org/gazagnaire.org/ocaml-precommit/issues" 10 12 depends: [ 11 13 "dune" {>= "3.21"} 12 14 "ocaml" {>= "4.08"} ··· 38 40 "@doc" {with-doc} 39 41 ] 40 42 ] 43 + dev-repo: "git+https://tangled.org/gazagnaire.org/ocaml-precommit" 41 44 x-maintenance-intent: ["(latest)"] 42 45 x-quality-build: "2026-04-15" 43 46 x-quality-test: "2026-04-15"