Lints and suggestions for the Nix programming language
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #122 from oppiliappan/dogfood-check

chore: dogfood via check, not treefmt

authored by

Shahar "Dawn" Or and committed by
GitHub
abb787cb 7acc0e88

+22 -9
+20
flake-parts/dogfood.nix
··· 1 + { lib, root, ... }: 2 + { 3 + partitions.dev.module.perSystem = 4 + psArgs@{ pkgs, ... }: 5 + let 6 + src = lib.fileset.toSource { 7 + inherit root; 8 + fileset = lib.fileset.fileFilter (file: file.hasExt "nix") root; 9 + }; 10 + in 11 + { 12 + checks.dogfood = 13 + pkgs.runCommand "dogfood" { nativeBuildInputs = [ psArgs.config.packages.default ]; } 14 + '' 15 + cd ${src} 16 + statix check --ignore /bin/tests/data 17 + touch $out 18 + ''; 19 + }; 20 + }
+1 -9
flake-parts/fmt.nix
··· 9 9 treefmt = { 10 10 projectRootFile = "flake.nix"; 11 11 programs = { 12 - nixfmt = { 13 - enable = true; 14 - priority = 2; 15 - }; 12 + nixfmt.enable = true; 16 13 prettier.enable = true; 17 14 # https://github.com/pappasam/toml-sort/issues/62 18 15 # toml-sort = { 19 16 # enable = true; 20 17 # all = true; 21 18 # }; 22 - statix = { 23 - enable = true; 24 - priority = 1; 25 - package = psArgs.config.packages.statix; 26 - }; 27 19 }; 28 20 settings.on-unmatched = "fatal"; 29 21 };
+1
flake.nix
··· 37 37 ./flake-parts/ci.nix 38 38 ./flake-parts/dependabot.nix 39 39 ./flake-parts/dev-shell.nix 40 + ./flake-parts/dogfood.nix 40 41 ./flake-parts/files.nix 41 42 ./flake-parts/fmt.nix 42 43 ./flake-parts/git-hooks.nix