Skip to content

Commit d246a43

Browse files
authored
Merge pull request #25 from eth-library/chore/nix-flake-lock-check
chore(precommit): add nix flake lock drift check hook
2 parents ef56ae0 + da6aec7 commit d246a43

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ repos:
2222
- id: check-toml
2323
- id: check-merge-conflict
2424
- id: check-added-large-files
25+
26+
- repo: local
27+
hooks:
28+
- id: nix-flake-lock-check
29+
name: nix flake lock drift check
30+
entry: nix flake lock --no-update-lock-file
31+
language: system
32+
files: ^flake\.(nix|lock)$
33+
pass_filenames: false

0 commit comments

Comments
 (0)