-
Notifications
You must be signed in to change notification settings - Fork 67
refactor!: add Makefile rule for formatting using ocamlformat #407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
21578d4
to
a32d47c
Compare
15dd6ab
to
a26f3d4
Compare
I think ocamlformat is fine for new projects, but in this case I wonder if it is worth it to break all of the git history (by which I mean |
Agree with @AltGr; moreover, merging this otherwise, ideally (but I don't know if this is possible), |
Since git
and |
I think for this point, updating the PR branch from the master one and then run |
e8fc918
to
86dbad7
Compare
86dbad7
to
98edf04
Compare
How should we do this? IINM, either |
You are certainly right... What about installing |
Sorry, forgot to reply earlier in this thread after we discussed this a bit with @yurug last month 😅 Trying to sum up the ideas:
as a result, I'll mark this PR in draft mode now, so we don't accidentally merge it. |
Hi @erikmd,
No problem :)
I don't really get how waiting will make easier the transition? Indeed, there will always be one open PR that will delay it, no? |
Hi @EmileRolley,
Sure! But it happens there are quite a few PRs open now, and most of them are not "small"… (admittedly, it's better if PRs are small! to ease review and so on; so, maybe, better next time ;-) |
In order to have a consistent formatted source code, this PR adds a Makefile rule
format
callingocamlformat.0.8
and provides a minimal.ocamlformat
file (which is not meant to be definitive at all).