Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Reformatting with OCamlFormat
b5bd3cc2645f45b55dd7addd69e47189e73316e9
2 changes: 2 additions & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=0.26.0
profile=default
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ install: build
uninstall:
@dune uninstall

reindent:
@find src '(' -name '*.ml' -or -name '*.mli' ')' -print0 | xargs -0 echo "reindenting: "
@find src '(' -name '*.ml' -or -name '*.mli' ')' -print0 | xargs -0 sed -i 's/[[:space:]]*$$//'
@find src '(' -name '*.ml' -or -name '*.mli' ')' -print0 | xargs -0 ocp-indent -i
fmt:
dune build @fmt

opam-deps:
opam install . --deps-only

.PHONY: build doc all clean test watch install uninstall reindent opam-deps
.PHONY: build doc all clean test watch install uninstall fmt opam-deps
2 changes: 0 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@
(zarith :with-test)
(logs (>= 0.5.0))
))

; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project
2 changes: 2 additions & 0 deletions extra/pre-commit--git-hook
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec dune build @fmt
Loading