languages: allow listOf format.type

This commit is contained in:
Ching Pei Yang 2025-08-23 16:04:51 +02:00
commit 70555904a0
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
22 changed files with 265 additions and 357 deletions

View file

@ -121,7 +121,7 @@
};
};
defaultFormat = "black";
defaultFormat = ["black"];
formats = {
black = {
command = getExe pkgs.black;
@ -233,12 +233,6 @@ in {
default = defaultFormat;
description = "Python formatters to use";
};
package = mkOption {
type = package;
default = formats.${cfg.format.type}.package;
description = "Python formatter package";
};
};
# TODO this implementation is very bare bones, I don't know enough python to implement everything