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
Tag: pre-commit.com
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
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
Pylint setup with pre-commit In python 3.5
I was trying to set up pylint with pre-commit in my project. I came to this answer where they tell how to set up my .pre-commit-config.yaml. When I went to the repository mentioned in the answer, they had written that This mirror repository is deprecated, use pylint directly. So I set my .pre-commit-config.yaml file like this But now when I