| Crates.io | pre-commit-sort |
| lib.rs | pre-commit-sort |
| version | 0.4.0 |
| created_at | 2023-05-14 12:31:21.445553+00 |
| updated_at | 2024-08-21 13:37:39.455964+00 |
| description | Sort pre-commit files |
| homepage | |
| repository | https://github.com/nim65s/pre-commit-sort |
| max_upload_size | |
| id | 864231 |
| size | 62,049 |
Rust validation, sort, deduplication and formatting for .pre-commit-config.yaml and .pre-commit-hooks.yaml files.
pre-commit-sort
Add this to the repo section of your .pre-commit-config.yaml:
- repo: https://github.com/nim65s/pre-commit-sort
rev: v0.4.0
hooks:
- id: pre-commit-sort
(This addition can be automated with pre-commit-sort -i)
pre-commit will install this project automatically for you if you only want to use the hook. But if you want a standalone version:
cargo binstall pre-commit-sort