-
-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hook to sort hooks in .pre-commit-config.yaml #62
Comments
Would be pretty easy. The problem with yaml rewriting is it's hard to make it retain the formatting as seen in pre-commit/pre-commit#210 and pre-commit/pre-commit#211 The runtime order is also sometimes important (like I'd rather run autopep8 before flake8, whitespace fixers before anything else, etc. etc.). But yeah I could see some people wanting alphabetized so it seems like a good idea for a hook. |
My main motivation in wanting alphabetized hooks is to make it easy to compare the hooks I'm using vs the hooks that are available to see if there are any I've forgotten to add or added twice. |
ooh I think we could do that better in the parent project. I've wanted to make a How does that sound? |
Sounds good to me. A nice-to-have would be if |
closing since this hasn't really moved forward in years |
This might sound a little meta but it would be nice to have a hook that alphabetically sorts the hooks in the .pre-commit-config.yaml in my repo.
The text was updated successfully, but these errors were encountered: