change from nixpkgs-fmt to rfc style formatter

This commit is contained in:
Jörg Thalheim
2024-03-17 19:44:49 +01:00
parent ab658bc610
commit f2a0f84bc2

View File

@@ -7,8 +7,6 @@
]; ];
perSystem = { self', pkgs, ... }: { perSystem = { self', pkgs, ... }: {
treefmt.projectRootFile = "flake.nix"; treefmt.projectRootFile = "flake.nix";
treefmt.flakeCheck = true;
treefmt.flakeFormatter = true;
treefmt.programs.shellcheck.enable = true; treefmt.programs.shellcheck.enable = true;
treefmt.programs.mypy.enable = true; treefmt.programs.mypy.enable = true;
@@ -25,7 +23,7 @@
# First deadnix # First deadnix
${lib.getExe pkgs.deadnix} --edit "$@" ${lib.getExe pkgs.deadnix} --edit "$@"
# Then nixpkgs-fmt # Then nixpkgs-fmt
${lib.getExe pkgs.nixpkgs-fmt} "$@" ${lib.getExe pkgs.nixfmt-rfc-style} "$@"
'' ''
"--" # this argument is ignored by bash "--" # this argument is ignored by bash
]; ];