Skip to content

Commit 8f2b394

Browse files
committed
simplify formatter setup
1 parent 03df4a5 commit 8f2b394

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

flake.nix

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
devShells.default = pkgs.mkShell {
5959
packages = [
6060
pkgs.ruff
61-
pkgs.nixfmt-rfc-style
6261
(pyprojectEnv (
6362
ps: with ps; [
6463
flit
@@ -71,19 +70,14 @@
7170
};
7271

7372
formatter = pkgs.nixfmt-tree.override {
74-
runtimeInputs = with pkgs; [ ruff ];
73+
runtimeInputs = [ pkgs.ruff ];
7574
settings = {
76-
on-unmatched = "info";
7775
tree-root-file = "flake.nix";
7876
formatter.ruff = {
7977
command = "ruff";
8078
options = [ "format" ];
8179
includes = [ "*.py" ];
8280
};
83-
formatter.nixfmt = {
84-
command = "nixfmt";
85-
includes = [ "*.nix" ];
86-
};
8781
};
8882
};
8983
}

0 commit comments

Comments
 (0)