feat(depotfmt): format Nix code using nixpkgs-fmt
Change-Id: Ieffd04e1654e37500a6f6f5e4f29d09137bbc4e9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5142 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
aa122cbae7
commit
120f0aa253
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@ let
|
||||||
[formatter.tf]
|
[formatter.tf]
|
||||||
command = "${terraformat}"
|
command = "${terraformat}"
|
||||||
includes = [ "*.tf" ]
|
includes = [ "*.tf" ]
|
||||||
|
|
||||||
|
[formatter.nix]
|
||||||
|
command = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt"
|
||||||
|
includes = [ "*.nix" ]
|
||||||
|
excludes = [
|
||||||
|
"third_party/nix/tests/*",
|
||||||
|
"third_party/nix/src/tests/*"
|
||||||
|
]
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# helper tool for formatting the depot interactively
|
# helper tool for formatting the depot interactively
|
||||||
|
|
Loading…
Reference in a new issue