mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-05 06:13:37 +09:00
flake: format the tree with one treefmt
The pre-commit hooks kept their own list of formatters, so nixpkgs-fmt in a hook and nixfmt in the check disagreed the moment flake-checks moved. `nix fmt` is now built from the same treefmt module the formatting check is, and the hook and the Makefile both call it.
This commit is contained in:
@@ -278,6 +278,17 @@
|
||||
drv = pkgs.headscale;
|
||||
};
|
||||
|
||||
# `nix fmt` is built from the same treefmt module as the formatting
|
||||
# check, so the two cannot disagree. Every formatter the tree is judged
|
||||
# by lives here, not in a hand-kept list of pre-commit hooks.
|
||||
formatter = fc.formatter (
|
||||
common
|
||||
// {
|
||||
goFmt = "off";
|
||||
prettier = true;
|
||||
}
|
||||
);
|
||||
|
||||
checks = {
|
||||
headscale = pkgs.testers.nixosTest (import ./nix/tests/headscale.nix);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user