File tree Expand file tree Collapse file tree 5 files changed +62
-2
lines changed Expand file tree Collapse file tree 5 files changed +62
-2
lines changed Original file line number Diff line number Diff line change 5
5
- master
6
6
pull_request :
7
7
jobs :
8
+ pre-commit :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ - uses : cachix/install-nix-action@v16
13
+ with :
14
+ extra_nix_config : |
15
+ experimental-features = nix-command flakes
16
+ - name : nix build
17
+ run : nix develop --command "pre-commit run --all-files"
8
18
nix-build :
9
19
runs-on : ubuntu-latest
10
20
steps :
Original file line number Diff line number Diff line change 19
19
result- *
20
20
* .drv
21
21
.direnv
22
-
Original file line number Diff line number Diff line change
1
+ repos :
2
+ - repo : meta
3
+ hooks :
4
+ - id : check-hooks-apply
5
+ - id : check-useless-excludes
6
+
7
+ - repo : https://github.com/pre-commit/pre-commit-hooks
8
+ rev : v4.1.0
9
+ hooks :
10
+ - id : check-added-large-files
11
+ - id : check-case-conflict
12
+ - id : check-merge-conflict
13
+ - id : check-toml
14
+ - id : check-vcs-permalinks
15
+ - id : check-yaml
16
+ - id : destroyed-symlinks
17
+ - id : detect-private-key
18
+ - id : end-of-file-fixer
19
+ - id : fix-byte-order-marker
20
+ - id : mixed-line-ending
21
+ - id : trailing-whitespace
22
+
23
+ - repo : local
24
+ hooks :
25
+ - id : cargo-fmt
26
+ name : cargo fmt
27
+ entry : cargo fmt
28
+ types : [rust]
29
+ language : system
30
+ pass_filenames : false
31
+ - id : cargo-check
32
+ name : cargo check
33
+ entry : cargo check
34
+ types : [rust]
35
+ language : system
36
+ pass_filenames : false
37
+ - id : cargo-clippy
38
+ name : cargo clippy
39
+ entry : cargo clippy -- --deny warnings
40
+ types : [rust]
41
+ language : system
42
+ pass_filenames : false
43
+ - id : nixpkgs-fmt
44
+ entry : nixpkgs-fmt
45
+ types : [nix]
46
+ language : system
47
+ name : nixpkgs-fmt
Original file line number Diff line number Diff line change 68
68
69
69
nixpkgs-fmt
70
70
rnix-lsp
71
+
72
+ pre-commit
71
73
] ;
74
+ shellHook = ''
75
+ pre-commit install --install-hooks
76
+ '' ;
72
77
} ;
73
78
} ) ;
74
79
}
Original file line number Diff line number Diff line change @@ -14,4 +14,3 @@ targets = [
14
14
" x86_64-pc-windows-gnu" ,
15
15
" x86_64-apple-darwin"
16
16
]
17
-
You can’t perform that action at this time.
0 commit comments