From 3fc5e6341fac3020361b9e883c1a976f948990e5 Mon Sep 17 00:00:00 2001 From: jutty Date: Tue, 15 Apr 2025 21:13:32 -0300 Subject: [PATCH] OCaml: Add formatting configuration --- ocaml/.ocamlformat | 8 ++++++++ ocaml/justfile | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 ocaml/.ocamlformat diff --git a/ocaml/.ocamlformat b/ocaml/.ocamlformat new file mode 100644 index 0000000..c8c3e93 --- /dev/null +++ b/ocaml/.ocamlformat @@ -0,0 +1,8 @@ +version = 0.27.0 +margin-check = true +extension-indent = 4 +function-indent = 4 +type-decl-indent = 4 +let-binding-indent = 4 +indicate-nested-or-patterns = space +indicate-multiline-delimiters = closing-on-separate-line diff --git a/ocaml/justfile b/ocaml/justfile index 4a9ad9d..616c1b1 100644 --- a/ocaml/justfile +++ b/ocaml/justfile @@ -11,8 +11,8 @@ test : format : dune fmt; dune promote -check-format : - dune build fmt +format-check fmt-ck : + dune fmt --preview cover : find . -name '*.coverage' -exec rm -v '{}' ';'