jumanjihouse / pre-commit-hooks

git pre-commit hooks that work with http://pre-commit.com/
MIT License
114 stars 52 forks source link

Support for Ruby 3 #106

Closed kenorb closed 1 year ago

kenorb commented 2 years ago
$ 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 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]

I'm using the following version:

  - repo: https://github.com/jumanjihouse/pre-commit-hooks
    rev: 2.1.6
    hooks:
      - id: markdownlint  # Configure in .mdlrc
oNaiPs commented 1 year ago

I can confirm version 3.0.0 works with ruby 3 and ubuntu 22.04 (docker image)

kenorb commented 1 year ago

Tested 3.0.0 release with ruby 3.2.1 and it worked for me as well.