TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

1 pointsby theSageover 6 years ago
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

gokaygurcanover 6 years ago
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.