diff --git a/nix/treefmt/flake-module.nix b/nix/treefmt/flake-module.nix index ba4fa16..16b4723 100644 --- a/nix/treefmt/flake-module.nix +++ b/nix/treefmt/flake-module.nix @@ -3,27 +3,26 @@ imports = [ inputs.treefmt-nix.flakeModule ]; - perSystem = - { pkgs, ... }: - { - treefmt = { - projectRootFile = ".git/config"; - programs.nixfmt.enable = true; - programs.shellcheck.enable = true; - programs.deno.enable = true; - settings.formatter.deno.excludes = [ - "tests/data/*.json" - "secrets.yaml" - ]; - settings.formatter.shellcheck.options = [ - "-s" - "bash" - ]; + perSystem = { + treefmt = { + projectRootFile = ".git/config"; + programs.nixfmt.enable = true; + programs.shellcheck.enable = true; + programs.deno.enable = true; - programs.mypy.enable = true; - programs.mypy.directories."." = { }; - programs.ruff.check = true; - programs.ruff.format = true; - }; + settings.global.excludes = [ + "tests/data/*.json" + "secrets.yaml" + ]; + settings.formatter.shellcheck.options = [ + "-s" + "bash" + ]; + + programs.mypy.enable = true; + programs.mypy.directories."." = { }; + programs.ruff.check = true; + programs.ruff.format = true; }; + }; }