Skip to content
Advertisement

Tag: pre-commit.com

Pre-commit hook throws error on hatchling requirement

I’m following the pre-commit directions to install git pre-commit hooks for python code formatting from black to my flask repo. I’ve added pre-commit to my requirements.txt and my pre-commit-config.yaml file looks like After installing pre-commit using pip install pre-commit and installing the git hook scripts using pre-commit install, I get this error message related to a hatchling dependency package when

The regx in pygrep always returns True

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

Advertisement