mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-30 12:07:46 +00:00
docs: simplify readme
This commit is contained in:
parent
a10a15984a
commit
2d540ec84b
4 changed files with 47 additions and 27 deletions
20
integrations/pre-commit/README.md
Normal file
20
integrations/pre-commit/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Pre-Commit integration
|
||||
|
||||
In order to use Alejandra with
|
||||
[Pre-Commit](https://pre-commit.com/)
|
||||
just create a file named `.pre-commit-config.yaml`
|
||||
with contents:
|
||||
|
||||
```yaml
|
||||
repos:
|
||||
- repo: https://github.com/kamadorueda/alejandra
|
||||
rev: 1.4.0
|
||||
# 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
|
||||
- id: alejandra
|
||||
|
||||
# Requires Alejandra to be previously installed in the system
|
||||
- id: alejandra-system
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue