TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What are some useful pre-commit hooks?

1 点作者 theSage超过 6 年前
I just discovered that [black](https:&#x2F;&#x2F;github.com&#x2F;ambv&#x2F;black) can be set up as a git pre-commit hook.<p>What are some other hooks that people have found useful?

1 comment

gokaygurcan超过 6 年前
There was this <a href="https:&#x2F;&#x2F;lolcommits.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lolcommits.github.io&#x2F;</a> project that captures your photo everytime you commit your code.<p>Of course, most people use pre-commit hooks for code linting&#x2F;formatting nowadays. You can check the project called Husky if you&#x27;re using Node.js in your projects.