1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

docs: add pre-commit-hooks.nix example

This commit is contained in:
Loïc Reynier 2022-05-31 14:17:44 +02:00 committed by Kevin Amado
parent 0be1462419
commit e88f5b6bbc

View file

@ -112,6 +112,16 @@
- id: alejandra # Requires Nix to be previously installed in the system
- id: alejandra-system # Requires Alejandra to be previously installed in the system
```
- [pre-commit-hooks.nix](https://github.com/cachix/pre-commit-hooks.nix)
```nix
pre-commit-check = pre-commit-hooks.lib.${system}.run {
hooks = {
alejandra.enable = true;
};
};
```
## Getting started