-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(flake): add more treefmt'ers, precommit hack
This adds support for additonal formatters: - alejandra: nix - statix: nix static analysis - deadnix: find dead nix code - rustfmt: rust - shellcheck: bash/shell - taplo: toml - yamlfmt: yaml Furhter, this uses eza-community/eza#609 to make it easy to add new formatters to both the pre-commit-hooks and treefmt by having pre-commit-hooks use whatever is specified in treefmt.nix, with a filter to remove those that pre-commit-hook don't support. Signed-off-by: Christina Sørensen <[email protected]>
- Loading branch information
Showing
9 changed files
with
39 additions
and
34 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 |
---|---|---|
|
@@ -12,4 +12,8 @@ powertest.yaml | |
/target | ||
/result | ||
|
||
# Generated by nix-pre-commit-hooks | ||
/.pre-commit-config.yaml | ||
|
||
# Direnv | ||
.direnv |
This file was deleted.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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