Skip to content

Commit e88f5b6

Browse files
loicreynierkamadorueda
authored andcommitted
docs: add pre-commit-hooks.nix example
1 parent 0be1462 commit e88f5b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@
112112
- id: alejandra # Requires Nix to be previously installed in the system
113113
- id: alejandra-system # Requires Alejandra to be previously installed in the system
114114
```
115+
116+
- [pre-commit-hooks.nix](https://github.com/cachix/pre-commit-hooks.nix)
117+
118+
```nix
119+
pre-commit-check = pre-commit-hooks.lib.${system}.run {
120+
hooks = {
121+
alejandra.enable = true;
122+
};
123+
};
124+
```
115125
116126
## Getting started
117127

0 commit comments

Comments
 (0)