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