1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-29 03:27:44 +00:00

feat: pre-commit hook with no prerequisites

This commit is contained in:
Victor Engmark 2023-01-16 09:16:33 +13:00 committed by Kevin Amado
parent e2582b5120
commit c003b37135
3 changed files with 13 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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
```