跳转至

支持的钩子

Supported hooks

精选钩子

featured hooks

这里有一些精选的仓库,提供 pre-commit 集成。

这些仓库相当受欢迎,并且通常在大多数设置中运行良好!

此列表并不旨在详尽无遗

由 pre-commit 团队提供:

针对 Python 项目:

针对 Shell 脚本:

针对 Web:

针对配置文件:

针对文本 / 文档 / 散文:

针对提交信息检查:

针对秘密扫描 / 安全:

针对其他编程语言:

here are a few hand-picked repositories which provide pre-commit integrations.

these are fairly popular and are generally known to work well in most setups!

this list is not intended to be exhaustive

provided by the pre-commit team:

for python projects:

for shell scripts:

for the web:

for configuration files:

for text / docs / prose:

for linting commit messages:

for secret scanning / security:

for other programming languages:

寻找钩子

finding hooks

建议使用您喜欢的搜索工具查找可在项目中使用的现有钩子。

例如,这里有一些您可能觉得有用的搜索,使用 sourcegraph

您也可以发现 GitHub 的搜索 可能有用,尽管其查询和排序功能相当有限,并且需要登录:

it's recommended to use your favorite searching tool to find existing hooks to use in your project.

for example, here's some searches you may find useful using sourcegraph:

you may also find github's search useful as well, though its querying and sorting capabilities are quite limited plus it requires a login:

添加到此页面

adding to this page

此页面的先前版本是一个钩子列表,维护所列工具的质量非常繁琐。

此页面并不旨在详尽无遗

您可以发送 拉取请求 来扩展此列表,但有一些要求您 必须 遵循,否则您的 PR 将被关闭而不作评论:

  • 工具必须已经相当受欢迎(>500 星)
  • 工具必须使用受管理的语言(不允许使用 system / script / docker 钩子)
  • 工具必须操作文件

the previous iteration of this page was a laundry list of hooks and maintaining quality of the listed tools was cumbersome.

this page is not intended to be exhaustive

you may send a pull request to expand this list however there are a few requirements you must follow or your PR will be closed without comment:

  • the tool must already be fairly popular (>500 stars)
  • the tool must use a managed language (no system / script / docker hooks)
  • the tool must operate on files

最后更新: 2024年9月24日
创建日期: 2024年9月24日