mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-29 19:47:45 +00:00
feat: pre-commit hook with no prerequisites
This commit is contained in:
parent
e2582b5120
commit
c003b37135
3 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,12 @@
|
|||
- id: alejandra
|
||||
name: alejandra
|
||||
description: Format Nix code with Alejandra.
|
||||
entry: alejandra
|
||||
language: rust
|
||||
files: \.nix$
|
||||
minimum_pre_commit_version: 2.21.0
|
||||
|
||||
- id: alejandra-nix
|
||||
name: alejandra (Nix)
|
||||
description: Format Nix code with Alejandra.
|
||||
entry: .pre-commit-entry.sh
|
||||
|
|
|
@ -31,6 +31,7 @@ Types of changes
|
|||
|
||||
- Thank you messages for the different people
|
||||
who have helped improving Alejandra.
|
||||
- A pre-commit hook with no prerequisites.
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -12,9 +12,12 @@ repos:
|
|||
# Choose either the 'alejandra' or 'alejandra-system' hook
|
||||
# depending on what pre-requisites you have:
|
||||
hooks:
|
||||
# Requires Nix to be previously installed in the system
|
||||
# No prerequisites
|
||||
- id: alejandra
|
||||
|
||||
# Requires Nix to be previously installed in the system
|
||||
- id: alejandra-nix
|
||||
|
||||
# Requires Alejandra to be previously installed in the system
|
||||
- id: alejandra-system
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue