Skip to content

Sort pre-commit hooks and repos alphabetically - #264

Merged
mxr merged 1 commit into
mainfrom
sort-precommit-hooks
Jul 28, 2026
Merged

Sort pre-commit hooks and repos alphabetically#264
mxr merged 1 commit into
mainfrom
sort-precommit-hooks

Conversation

@mxr

@mxr mxr commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Problem

Repos and hooks in .pre-commit-config.yaml were listed in no particular order, making it harder to scan for a given hook.

Solution

Sorted repo blocks by repo url (local repo last) and sorted the hooks within each repo block by hook id. No formatting, spacing, or version changes.

@mxr
mxr enabled auto-merge (squash) July 28, 2026 01:15
@mxr
mxr merged commit 87f090e into main Jul 28, 2026
7 checks passed
@mxr
mxr deleted the sort-precommit-hooks branch July 28, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant