-
Notifications
You must be signed in to change notification settings - Fork 34
Update pre-commit dependencies and ruff hook ID
#991
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
Conversation
|
It looks like the newest |
|
@altheaden, this looks good to me. I'm also happy to help with the mypy issues if that's desirable. @tomvothecoder and @chengzhuzhang, just let us know. |
|
This is awesome. Thanks a lot @altheaden!
You can safely ignore the dependency files under
I've always wanted a way to automate updating the QA dependencies. I would love to have this implemented in
@xylar sounds good if you have time. Otherwise I can help here if I happen to get to it before @altheaden. |
|
FYI: I am addressing some of the |
|
@altheaden, I think you can rebase this one now. |
|
Oops, I forgot to push my rebased branch, sorry! I will push it now. |
e16519e to
55f4ec5
Compare
|
@tomvothecoder, @altheaden, it looks like the new mypy is still unhappy even after the rebase. |
I expected there to be some remaining |
- Pin `pre-commit >=4.2.0`
Description
I noticed that
pre-commithasn't been updated in a while, so in this PR I usedpre-commit autoupdateto updatepre-commit's dependencies. I've also updated thepre-commitversion (as well as its dependencies' versions) inconda-env/dev.yml. Additionally, in more recent versions ofruff-pre-commit, the previous hook ID (ruff) is now referred to as a "legacy" alias, withruff-checkbeing the preferred ID now, so I've updated that as well.The only other place I noticed the versions being specifically stated in this repo are in
auxiliary_tools/debug/985-perf-degrade- I'm not sure if you'd want the versions updated there as well, but I can add that to this PR if that's desired. Just let me know!As an aside, I have created a weekly CI workflow which automatically creates a PR with any updates to
pre-commitand its dependencies, and we currently use it on several of @xylar's repos (such as mache and polaris). If manually updatingpre-commitis something that is annoying to keep track of, then that workflow might be useful for you guys! However, none of those other repos have the dependencies' versions listed in a separate file (the way they are inconda-env/dev.yml) so it would need to be tweaked to include that (or it could be a manual change somebody adds when approving the PR). I'm happy to help set it up if that sounds like a desired change.Checklist
If applicable: