-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I feel that the quality of `treemt` has lately declined. For eg., recent versions started dumping a bunch of needless noise (why is it now trying to format all files in repo?): ![image](https://github.com/user-attachments/assets/9aa15526-1081-41f1-85f4-7dc2034b24d2) which then required more configuration in Nix to fix: d8c7e63 And this unnecessarily extra config will vary across projects, depending on the files they have. --- We strictly don't need treefmt though (besides, [not everyone](https://x.com/sridca/status/1808605343674450157) is allowed to contribute) because that's what `pre-commit run -a` is for. To that end, this PR gets rid of `treefmt` and switches to https://github.com/cachix/git-hooks.nix (the Nix module for https://pre-commit.com/). Functionality more or less remains the same - except for losing `just` formatter (which can be added to git-hooks.nix) and of course gaining git pre-commit hooks setup in devShell.
- Loading branch information
Showing
7 changed files
with
41 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,6 @@ result | |
result-* | ||
|
||
# direnv | ||
.direnv | ||
.direnv | ||
|
||
/.pre-commit-config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters