you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 2 years ago (1 child)

No, they're inherently optional in Git. There's no way to "check in" a git hook. You have to put in your README

Clone the repo and then please run pre-commit install! Oh and whatever you do don't git commit --no-verify!

You definitely need to actually check the lints in CI. It's very easy though, just add pre-commit run -a to your CI script.

  • source
  • parent
  • hideshow 1 child comment