File tree Expand file tree Collapse file tree 6 files changed +13
-43
lines changed Expand file tree Collapse file tree 6 files changed +13
-43
lines changed Original file line number Diff line number Diff line change 15
15
with :
16
16
name : pre-commit-hooks
17
17
signingKey : ' ${{ secrets.CACHIX_SIGNING_KEY }}'
18
- - run : nix-build
18
+ - run : nix-build --keep-going
19
19
tests-flakes :
20
20
strategy :
21
21
matrix :
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ use nix
84
84
- [ deadnix] ( https://github.com/astro/deadnix )
85
85
- [ nixpkgs-fmt] ( https://github.com/nix-community/nixpkgs-fmt )
86
86
- [ nixfmt] ( https://github.com/serokell/nixfmt/ )
87
- - [ nix-linter] ( https://github.com/Synthetica9/nix-linter )
88
87
- [ statix] ( https://github.com/nerdypepper/statix )
89
88
90
89
## Haskell
@@ -95,7 +94,6 @@ use nix
95
94
- [ stylish-haskell] ( https://github.com/jaspervdj/stylish-haskell )
96
95
- [ hlint] ( https://github.com/ndmitchell/hlint )
97
96
- [ cabal-fmt] ( https://github.com/phadej/cabal-fmt )
98
- - [ brittany] ( https://github.com/lspitzner/brittany )
99
97
- [ hpack] ( https://github.com/sol/hpack )
100
98
101
99
## Elm
Original file line number Diff line number Diff line change 2
2
description = "Seamless integration of https://pre-commit.com git hooks with Nix." ;
3
3
4
4
inputs . nixpkgs . url = "github:NixOS/nixpkgs/nixos-unstable" ;
5
- inputs . nixpkgs-stable . url = "github:NixOS/nixpkgs/nixos-22.05 " ;
5
+ inputs . nixpkgs-stable . url = "github:NixOS/nixpkgs/nixos-22.11 " ;
6
6
inputs . flake-utils . url = "github:numtide/flake-utils" ;
7
7
inputs . flake-compat = {
8
8
url = "github:edolstra/flake-compat" ;
46
46
inherit ( exposed . checks . pre-commit-check ) shellHook ;
47
47
} ;
48
48
49
- checks = exposed . checks // ( builtins . removeAttrs exposed-stable . checks [ "revive" "purs-tidy" ] ) ;
49
+ checks = exposed . checks // exposed-stable . checks ;
50
50
51
51
lib = { inherit ( exposed ) run ; } ;
52
52
}
Original file line number Diff line number Diff line change 118
118
default = { } ;
119
119
} ;
120
120
} ;
121
- nix-linter =
122
- {
123
- checks =
124
- mkOption {
125
- type = types . listOf types . str ;
126
- description = lib . mdDoc
127
- "Available checks. See `nix-linter --help-for [CHECK]` for more details." ;
128
- default = [ ] ;
129
- } ;
130
- } ;
131
121
nixfmt =
132
122
{
133
123
width =
385
375
"proto"
386
376
] ;
387
377
} ;
388
- brittany =
389
- {
390
- name = "brittany" ;
391
- description = "Haskell source code formatter." ;
392
- entry = "${ tools . brittany } /bin/brittany --write-mode=inplace" ;
393
- files = "\\ .l?hs(-boot)?$" ;
394
- } ;
395
378
dhall-format = {
396
379
name = "dhall-format" ;
397
380
description = "Dhall code formatter." ;
554
537
files = "\\ .nix$" ;
555
538
pass_filenames = false ;
556
539
} ;
557
- nix-linter =
558
- {
559
- name = "nix-linter" ;
560
- description = "Linter for the Nix expression language." ;
561
- entry =
562
- "${ tools . nix-linter } /bin/nix-linter ${
563
- lib . escapeShellArgs ( lib . concatMap ( check : [ "-W" "${ check } " ] ) settings . nix-linter . checks )
564
- } " ;
565
- files = "\\ .nix$" ;
566
- } ;
567
540
elm-format =
568
541
{
569
542
name = "elm-format" ;
Original file line number Diff line number Diff line change 24
24
, hunspell
25
25
, luaPackages
26
26
, mdsh
27
- , nix-linter
28
27
, nixfmt
29
28
, nixpkgs-fmt
30
29
, nodePackages
40
39
, stylua
41
40
, texlive
42
41
, typos
42
+ , yamllint
43
43
, writeScript
44
44
, writeText
45
45
, go
54
54
} ;
55
55
in
56
56
{
57
- inherit actionlint alejandra cabal-fmt cabal2nix cargo clang-tools clippy deadnix dhall editorconfig-checker hadolint hindent hlint hpack html-tidy nix-linter nixfmt nixpkgs-fmt ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua typos go mdsh revive go-tools ;
57
+ inherit actionlint ansible-lint alejandra cabal-fmt cabal2nix cargo clang-tools clippy deadnix dhall editorconfig-checker hadolint hindent hlint hpack html-tidy nixfmt nixpkgs-fmt ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua typos go mdsh revive go-tools yamllint ;
58
58
inherit ( elmPackages ) elm-format elm-review elm-test ;
59
59
# TODO: these two should be statically compiled
60
- inherit ( haskellPackages ) brittany fourmolu ;
60
+ inherit ( haskellPackages ) fourmolu ;
61
61
inherit ( luaPackages ) luacheck ;
62
62
inherit ( nodePackages ) eslint markdownlint-cli prettier ;
63
- inherit ( python39Packages ) ansible-lint yamllint ;
64
63
purs-tidy = nodePackages . purs-tidy or null ;
65
64
cabal2nix-dir = callPackage ./cabal2nix-dir { } ;
66
65
hpack-dir = callPackage ./hpack-dir { } ;
You can’t perform that action at this time.
0 commit comments