pre-commit-hooks
pre-commit-hooks copied to clipboard
git pre-commit hooks that work with http://pre-commit.com/
Since upgrade ruby v3 I got this error when I try to do git commit/push => ``` [INFO] Installing environment for https://github.com/jumanjihouse/pre-commit-hooks. [INFO] Once installed this environment will be reused....
(Pointing instead to Ruby 2.7 works fine) ``` $ pre-commit run --all-files [INFO] Installing environment for https://github.com/jumanjihouse/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a...
``` $ pre-commit run -a heck markdown files........................................................Failed - hook id: markdownlint - exit code: 1 Executable `/usr/bin/ruby2.7` not found $ which -a ruby /usr/bin/ruby /bin/ruby $ ruby --version ruby...
Provide Ruby 3 compatibility by updating GemSpec
Shellcheck and shfmt don't support zsh. How about avoid passing zsh file to shellcheck and shfmt hooks? Thanks!
I am a fan of `check-mailmap` and use this hook. I think it would be cool if `check-mailmap` had an argument to confirm the `.mailmap` is alphabetically ordered. Bonus points:...
[According to the README](https://github.com/jumanjihouse/pre-commit-hooks#require-ascii): > ### `require-ascii` > > **What it does** > > Requires that text files have ascii-encoding, including the > [extended ascii set](https://theasciicode.com.ar/). > This is useful...
We were using Alpine 3.13 so far and upgrading to Alping 3.15 got in an upgrade of ruby to v3.0.3-r0, among other things. I install ruby in my image: ```...
The `shfmt` pre-commit hook fails if the file path contains spaces. The issue is that these lines in: https://github.com/jumanjihouse/pre-commit-hooks/blob/master/pre_commit_hooks/shfmt ``` readonly cmd="shfmt -w $*" echo "[RUN] ${cmd}" ${cmd} ``` should...
This flag been around since 2014 and version 0.20.0, and it avoids running rubocop against files that are excluded in the .rubocop.yml configuration. - [1] https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md#new-features-102