pre-commit-sort

Crates.iopre-commit-sort
lib.rspre-commit-sort
version0.4.0
sourcesrc
created_at2023-05-14 12:31:21.445553
updated_at2024-08-21 13:37:39.455964
descriptionSort pre-commit files
homepage
repositoryhttps://github.com/nim65s/pre-commit-sort
max_upload_size
id864231
size62,049
Guilhem Saurel (nim65s)

documentation

README

Pre-commit sort

CI Release pre-commit.ci status

Rust validation, sort, deduplication and formatting for .pre-commit-config.yaml and .pre-commit-hooks.yaml files.

Standalone validation

pre-commit-sort

Use as pre-commit hook

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)

Installation

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
Commit count: 136

cargo fmt