Skip to content

Commit

Permalink
treefmt: Add ignores to avoid noise
Browse files Browse the repository at this point in the history
Upstream's behaviour is really bad

numtide/treefmt-nix#194

Not sure when this was changed.
  • Loading branch information
srid committed Nov 18, 2024
1 parent e3d1946 commit d8c7e63
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nix/modules/flake-parts/formatter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
treefmt.config = {
projectRootFile = "flake.nix";

settings.global.excludes = [
".*"
"*.sql" # https://github.com/numtide/treefmt-nix/issues/257
"*.md"
"hie.yaml"
"LICENSE"
];

programs.just.enable = true;
settings.formatter.just.includes = [ "justfile" ];
programs.fourmolu = {
Expand Down

0 comments on commit d8c7e63

Please sign in to comment.