Skip to content

Commit a2fb6d9

Browse files
committed
simplify formatter setup
1 parent 1b4d34e commit a2fb6d9

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
@@ -64,7 +64,6 @@
6464
default = pkgs.mkShell {
6565
packages = [
6666
pkgs.ruff
67-
pkgs.nixfmt-rfc-style
6867
(pkgs.python3.withPackages (
6968
pyproject.renderers.withPackages {
7069
python = pkgs.python3;
@@ -83,19 +82,14 @@
8382
formatter = forAllSystems (
8483
pkgs:
8584
pkgs.nixfmt-tree.override {
86-
runtimeInputs = with pkgs; [ ruff ];
85+
runtimeInputs = [ pkgs.ruff ];
8786
settings = {
88-
on-unmatched = "info";
8987
tree-root-file = "flake.nix";
9088
formatter.ruff = {
9189
command = "ruff";
9290
options = [ "format" ];
9391
includes = [ "*.py" ];
9492
};
95-
formatter.nixfmt = {
96-
command = "nixfmt";
97-
includes = [ "*.nix" ];
98-
};
9993
};
10094
}
10195
);

0 commit comments

Comments
 (0)