Add Githook for Code Formatting
EvanPiro opened this issue · 5 comments
EvanPiro commented
Putting auto-formatting on a per commit basis would save the developer time resolving formatting issues due to failing CI.
Getting something like the following in a githook would suffice:
nix develop -c "treefmt"
srid commented
I wouldn't enable it by default, but we can add documentation (linked from README.md) explaining to the user how to do it ... possibly based on:
srid commented
Relevant: numtide/treefmt#78
srid commented
srid commented
Closing in favour of srid/haskell-flake#136