Skip to content

Commit

Permalink
docs: add pre-commit-hooks.nix example
Browse files Browse the repository at this point in the history
  • Loading branch information
loicreynier authored and kamadorueda committed May 31, 2022
1 parent 0be1462 commit e88f5b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e88f5b6

Please sign in to comment.