Need advice about which tool to choose?Ask the StackShare community!
pre-commit vs pre-commit by Yelp: What are the differences?
pre-commit: A slightly improved pre-commit hook for git. pre-commit checks your code for errors before you commit it. pre-commit is configurable; pre-commit by Yelp: A framework for managing and maintaining multi-language pre-commit hooks. If one of your developers doesn’t have node installed but modifies a JavaScript file, pre-commit automatically handles downloading and building node to run jshint without root. Pre-commit is a multi-language package manager for pre-commit hooks. You specify a list of hooks you want and pre-commit manages the installation and execution of any hook written in any language before every commit. pre-commit is specifically designed to not require root access.
pre-commit and pre-commit by Yelp can be categorized as "Git" tools.
Some of the features offered by pre-commit are:
- debugger: make sure you don't commit a debugger statement
- tabs: make sure your code uses leading spaces instead of tabs
- whitespace: make sure you don't commit trailing whitespace
On the other hand, pre-commit by Yelp provides the following key features:
- node
- python
- ruby
pre-commit and pre-commit by Yelp are both open source tools. pre-commit by Yelp with 3.09K GitHub stars and 234 forks on GitHub appears to be more popular than pre-commit with 755 GitHub stars and 96 GitHub forks.
Pros of pre-commit
Pros of pre-commit by Yelp
- Multiple language support2
- Modular1