-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathtreefmt.nix
More file actions
39 lines (32 loc) · 1.02 KB
/
treefmt.nix
File metadata and controls
39 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ inputs, ... }:
{
imports = [ inputs.treefmt-nix.flakeModule ];
perSystem =
{ pkgs, ... }:
{
treefmt = {
flakeCheck = pkgs.stdenv.hostPlatform.system != "riscv64-linux";
# Used to find the project root
projectRootFile = "flake.lock";
# Ignore these files
settings.excludes = [ "tests/testpkgs/custom-deps/pnpm/pnpm-lock.yaml" ];
programs.deno.enable = pkgs.stdenv.hostPlatform.system != "x86_64-darwin";
programs.mypy.enable = true;
programs.mypy.directories = {
"." = {
extraPythonPackages = with pkgs.python3.pkgs; [
pytest
];
};
};
programs.yamlfmt.enable = true;
programs.nixfmt.enable = true;
programs.deadnix.enable = true;
programs.ruff.format = true;
programs.ruff.check = true;
programs.shellcheck.enable = true;
programs.shfmt.enable = true;
settings.formatter.shfmt.includes = [ "*.envrc" ];
};
};
}