7 unstable releases (3 breaking)

0.4.0 Aug 21, 2024
0.2.0 Apr 23, 2024
0.1.0 Jun 2, 2023
0.0.5 May 14, 2023

#716 in Encoding

Download history 5/week @ 2024-07-29 147/week @ 2024-08-19 17/week @ 2024-09-16 8/week @ 2024-09-23 5/week @ 2024-09-30

330 downloads per month

MIT/Apache

17KB
369 lines

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

Dependencies

~2.5–3.5MB
~70K SLoC