New package manager request: prek #40967
Replies: 4 comments 1 reply
-
|
Hi there, You're asking us to support a new package manager. We need to know some basic information about this package manager first. Please copy/paste the new package manager questionnaire, and fill it out in full. Once the questionnaire is filled out we'll decide if we want to support this new manager. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
New package manager questionnaireDid you read our documentation on adding a package manager?
BasicsWhat's the name of the package manager?prek What language(s) does this package manager support?Language-agnostic: prek manages git hooks that can be written in any language. The hooks themselves are pulled from remote git repositories and pinned to specific tags. How popular is this package manager?prek has 6k+ stars on GitHub (as of Feb 2026). It's the primary alternative to pre-commit and is growing rapidly. Does this language have other (competing?) package managers?
pre-commit: Renovate already has a manager for pre-commit's What are the big selling points for this package manager?
Detecting package filesWhat kind of package files, and names, does this package manager use?
Which
|
Beta Was this translation helpful? Give feedback.
-
|
Hi! The questionnaire has been filled out for a couple of weeks now. I'm happy to submit a PR if this looks like something the team would accept. Just want to confirm before investing the effort. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
LGTM Issue created: #41683 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
prek is a growing git pre-commit framework written in Rust. prek is a compatible replacement to pre-commit, using the same hook repository ecosystem and the config file (
.pre-commit-config.yaml). Because of this, prek users have thus far been able to use Renovate's existing pre-commit support. Recently, however, prek began adding support for its own configuration format,prek.toml, in addition to the existing YAML format.prek's dependency model is identical to pre-commit: repositories are pinned by
repoURL +revtag, and the goal is to keeprevvalues up to date. prek uses the same hook repos, same versioning (git tags), and same datasources (github-tags,gitlab-tags).I think a standalone prek manager makes more sense than extending the existing pre-commit manager; it's a different tool and config for the same ecosystem, which is how Renovate already handles npm/yarn/pnpm and the various pip managers. Also, there has been some past conflict between Renovate and pre-commit, resulting in a disabled-by-default status. We are eager to work through some of these past friction points and work together for Renovate support :)
The shared logic (URL parsing, datasource mapping,
additional_dependenciesextraction) could be imported from the pre-commit manager or duplicated.I would be more than happy to submit a PR if that would be accepted or help speed things along :) Since no new datasource or versioning is needed, this should be a single PR adding
lib/modules/manager/prek/.Beta Was this translation helpful? Give feedback.
All reactions