Fix pre-commit #18
10
README.md
10
README.md
@@ -51,7 +51,15 @@ uv run --group integration-test pytest test/integration
|
||||
|
||||
To activate automatic linting, formatting, branch name checks and commit message checks, run:
|
||||
|
||||
```shell
|
||||
```bash
|
||||
uv run pre-commit install
|
||||
uv run pre-commit install --hook-type commit-msg
|
||||
```
|
||||
|
||||
You might get an error along the lines of `Can't install pre-commit with core.hooksPath` set. To fix this, simply unset the hooksPath by running:
|
||||
|
||||
```bash
|
||||
git config --local --unset core.hooksPath
|
||||
```
|
||||
|
||||
Then run the pre-commit install commands again.
|
||||
|
||||
Reference in New Issue
Block a user