I’m using the pygrep in pre-commit and here is my settings: I want to check the commit message format but no mater what I entered, it always returns true. Answer you also commented on github! pick one in the future not both! your regex doesn’t follow the pattern I outlined in that issue you commented on — here is the
Tag: pre-commit
Install pre-commit on package install in setup.py file
I would like, when I install my python package with pip install ., that the command pre-commit install be run as well as everything else in the setup file. Here is my setup.py file where I try to execute this: However, when I run this, pre-commit install does not get run. I’m mostly taking inspiration from this SO post and