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:
parent
0be1462419
commit
e88f5b6bbc
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue