https://github.com/mbarbin/auto-format
Building auto format commands for custom languages, dsl configs, etc.
https://github.com/mbarbin/auto-format
auto-formatter dune dune-fmt fmt ocaml
Last synced: 21 days ago
JSON representation
Building auto format commands for custom languages, dsl configs, etc.
- Host: GitHub
- URL: https://github.com/mbarbin/auto-format
- Owner: mbarbin
- License: mit
- Created: 2023-11-12T21:33:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-05-15T15:51:24.000Z (about 1 month ago)
- Last Synced: 2026-05-15T16:36:35.404Z (about 1 month ago)
- Topics: auto-formatter, dune, dune-fmt, fmt, ocaml
- Language: OCaml
- Homepage: https://mbarbin.github.io/auto-format/
- Size: 188 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: COPYING.HEADER
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# auto-format
[](https://github.com/mbarbin/auto-format/actions/workflows/ci.yml)
[](https://coveralls.io/github/mbarbin/auto-format?branch=main)
With this opinionated library you can build normalized auto-format commands for custom languages, that can be integrated with editors as well as `dune fmt`.
## Code Documentation
The code documentation of the latest release is built with `odoc` and published to `GitHub` pages [here](https://mbarbin.github.io/auto-format).
## Examples & tests
The `example/` contains the implementation of a toy `key=value` config language, which includes a parser, a pretty-printer and `auto-fmt` utils built with the library.
You can see examples of cli usage in `example/test/run.t`, and an example of `dune fmt` integration in `example/test/dune`.
## See Also
This library is extensively used and tested in the [bopkit](https://github.com/mbarbin/bopkit) project.