-
Notifications
You must be signed in to change notification settings - Fork 11
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
pre-commit Hook Maintenance and Update #63
Conversation
Per prettier/prettier#8937 the pre-commit hook has been moved to https://github.com/pre-commit/mirrors-prettier. I have also updated to the latest version in that repository.
At some point the python GitHub organization renamed to psf (Python Software Foundation). Although it redirects with no issue, I think it should be updated to reflect the current repository URL.
Two hooks had trailing '.git's in the URLs. Although this is not a problem, we should be consistent in how we format things.
Enabled 'check-case-conflict' because of our mixed Linux and macOS development. Although APFS supports case-sensitive containers, it is not the default as far as I am aware. Linux filesystems are typically case-sensitive however. With the merge of cisagov/development-guide#42 we now have a TOML file in a repository, so it does not hurt to add this hook in case more are added in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for keeping us updated!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good! π
Do we want to put the "blocked" label on this PR to hold it until we are ready for the next Kraken release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A+!
I missed that this repository was transfered from the creator, Timothy Crosley, to the PyCQA organization.
"Blocked" implies that another issue or pull request is blocking this one. I suggest creating a new label ("Next Kraken"?) for this purpose. |
I would honestly like some kind of "on hold" label to cover waiting for a deployment, a kraken, etc |
I am fine with an "On Hold" label that is distinct from "Blocked". Probably @felddy can add a phone receiver emoji as well. |
@jsf9k Alerted me that the URL for the |
π£ Description
This PR:
repo
URLs for four hooks to be accurate and consistent.pre-commit-hooks
.pre-commit autoupdate
.π Motivation and Context
I noticed that the prettier pre-commit hook that we switched to in #55 had been archived. Upon investigating, I saw that the repo handling that had changed, again, but this time to one of the
pre-commit
mirrors. Since I was already updating that hook, I thought I would audit the other hook URLs while I was making changes.I also decided to add two new hooks and run an
autoupdate
to round out a hook maintenance PR.π§ͺ Testing
Automated tests pass.
β Checklist