Skip to content
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

Add Githook for Code Formatting #33

Closed
EvanPiro opened this issue Aug 8, 2022 · 5 comments
Closed

Add Githook for Code Formatting #33

EvanPiro opened this issue Aug 8, 2022 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@EvanPiro
Copy link
Contributor

EvanPiro commented Aug 8, 2022

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
Copy link
Owner

srid commented Aug 8, 2022

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 srid added the documentation Improvements or additions to documentation label Aug 8, 2022
@srid
Copy link
Owner

srid commented Aug 17, 2022

Relevant: #36 (a nix check to make sure that source code was autoformatted).

@srid
Copy link
Owner

srid commented Mar 14, 2023

Relevant: numtide/treefmt#78

@srid
Copy link
Owner

srid commented Jan 12, 2024

srid/haskell-flake#136

@srid
Copy link
Owner

srid commented Jul 23, 2024

Closing in favour of srid/haskell-flake#136

@srid srid closed this as completed Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants
@srid @EvanPiro and others