Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ use nix

- [alejandra](https://github.com/kamadorueda/alejandra)
- [deadnix](https://github.com/astro/deadnix)
- [flake-checker](https://github.com/DeterminateSystems/flake-checker)
- [nil](https://github.com/oxalica/nil)
- [nixfmt](https://github.com/serokell/nixfmt/)
- [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt)
Expand Down
8 changes: 8 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,14 @@ in
"${binPath} --format ${hooks.flake8.settings.format} ${extendIgnoreStr}";
types = [ "python" ];
};
flake-checker = {
name = "flake-checker";
description = "Run health checks on your flake-powered Nix projects.";
package = tools.flake-checker;
entry = "${hooks.flake-checker.package}/bin/flake-checker -f";
files = "(^flake\\.nix$|^flake\\.lock$)";
pass_filenames = false;
};
flynt =
{
name = "flynt";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
, editorconfig-checker
, elixir
, elmPackages
, flake-checker ? null
, fprettify
, git-annex
, gptcommit ? null
Expand Down Expand Up @@ -108,6 +109,7 @@ in
eclint
editorconfig-checker
elixir
flake-checker
fprettify
go
go-tools
Expand Down