flake: add keep-sorted to treefmt

This commit is contained in:
Matt Sturgeon 2025-05-16 03:15:32 +01:00
parent 2628efee71
commit 0a6bd171cf
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -23,7 +23,9 @@
flakeCheck = true;
programs = {
# keep-sorted start block=yes newline_separated=no
isort.enable = true;
keep-sorted.enable = true;
nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
@ -36,6 +38,7 @@
check = true;
format = true;
};
shfmt.enable = true;
statix = {
enable = true;
disabled-lints = [
@ -44,9 +47,9 @@
];
};
stylua.enable = true;
shfmt.enable = true;
# FIXME: re-enable on darwin, currently broken: taplo with options '[format]' failed to apply: exit status 101
taplo.enable = pkgs.stdenv.isLinux;
# keep-sorted end
};
settings = {