Closed matthewfeickert closed 3 years ago
it's not easy unfortunately -- here's the pre-commit
issue: https://github.com/pre-commit/pre-commit/issues/1351#issuecomment-594111058
a (monumental) amount of work would need to be done to teach pre-commit about (1) every install flag (2) every language's packaging repository
Thanks very much for the quick response and info. :+1: That's super helpful unto itself.
if you're willing to work on a partial solution, assuming you can find a reasonable format for each of the currently supported languages it could be added upstream and then work here (and ignore flags, custom indices, not found packages, etc.)
if you're willing to work on a partial solution, assuming you can find a reasonable format for each of the currently supported languages it could be added upstream and then work here (and ignore flags, custom indices, not found packages, etc.)
While I appreciate the info and the directional guidance, I think from your description so far this isn't something I'm going to be able to contribute towards a solution in a helpful time frame to anyone. Though I have subscribed to the pre-commit
Issue.
The
assuming you can find a reasonable format for each of the currently supported languages
is a good example of the difficulty of the problem as you lay it out in the pre-commit
Issue as well — that's not easy even for someone with expertise. :grimacing:
yeah, like I think I could make it kinda work for python, but I'd have a hard time getting something working nicely for any and every other language
Hi. One of the great things about
pre-commit.ci
is the weekly autoupdates each Monday (I really appreciate this part of the service!). However, as I have this setup across multiple projects I sometimes am a bit too quick on the accept and I forget to check if any of the other hooks in the.pre-commit-config.yaml
file have an additional dependency that should also be updated.Example:
The
pyhf
.pre-commit-config.yaml
uses bothpyupgrade
(thanks for that as well Anthony) andnbQA
withpyupgrade
as an additional dependency ofnbqa-pyupgrade
. The versions ofpyupgrade
are currently out of sync there though.It would be nice if possible to be able to configure
pre-commit.ci
to updatepyupgrade
for both thepyupgrade
andnbqa-pyupgrade
additional_dependencies
so that for (as an example)pyupgrade
v2.15.0
the diff would beAt the time of writing this the configuration options for
pre-commit.ci
are:autofix_prs
autoupdate_commit_msg
skip
submodules
so I don't think this is already possible, but I'd be very happy to learn that I'm also just missing something obvious. :)