-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These have mostly no effect and just make sure that trailing newlines are used properly, linebreaks are linux-like and trailing whitespace is removed.
- Loading branch information
1 parent
9543964
commit 228bdc4
Showing
10 changed files
with
61 additions
and
10 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
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
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
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 |
---|---|---|
@@ -1,4 +1,55 @@ | ||
{ pkgs, ... }: | ||
let | ||
|
||
excludes = ["^gencargo/" "^proto/genproto"]; | ||
|
||
in | ||
{ | ||
# TODO(aaronmondal): Add hooks here. | ||
# Default hooks | ||
trailing-whitespace-fixer = { | ||
inherit excludes; | ||
enable = true; | ||
name = "trailing-whitespace"; | ||
description = "Remove trailing whitespace"; | ||
entry = "${pkgs.python311Packages.pre-commit-hooks}/bin/trailing-whitespace-fixer"; | ||
types = [ "text" ]; | ||
}; | ||
end-of-file-fixer = { | ||
inherit excludes; | ||
enable = true; | ||
name = "end-of-file-fixer"; | ||
description = "Remove trailing whitespace"; | ||
entry = "${pkgs.python311Packages.pre-commit-hooks}/bin/end-of-file-fixer"; | ||
types = [ "text" ]; | ||
}; | ||
fix-byte-order-marker = { | ||
inherit excludes; | ||
enable = true; | ||
name = "fix-byte-order-marker"; | ||
entry = "${pkgs.python311Packages.pre-commit-hooks}/bin/fix-byte-order-marker"; | ||
}; | ||
mixed-line-ending = { | ||
inherit excludes; | ||
enable = true; | ||
name = "mixed-line-ending"; | ||
entry = "${pkgs.python311Packages.pre-commit-hooks}/bin/mixed-line-ending"; | ||
types = [ "text" ]; | ||
}; | ||
check-case-conflict = { | ||
inherit excludes; | ||
enable = true; | ||
name = "check-case-conflict"; | ||
entry = "${pkgs.python311Packages.pre-commit-hooks}/bin/check-case-conflict"; | ||
types = [ "text" ]; | ||
}; | ||
detect-private-key = { | ||
excludes = excludes ++ [ | ||
# This is an integration testfile that is not intended for production. | ||
"deployment-examples/docker-compose/example-do-not-use-in-prod-key.pem" | ||
]; | ||
enable = true; | ||
name = "detect-private-key"; | ||
entry = "${pkgs.python311Packages.pre-commit-hooks}/bin/detect-private-key"; | ||
types = [ "text" ]; | ||
}; | ||
} |