I am trying to add a gitlint pre-commit hook in a repository. The .pre-commit-config.yaml
file looks lke this:
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: gitlint
name: gitlint
entry: gitlint
language: system
However, I keep getting:
- hook id: gitlint
- exit code: 253
Usage: gitlint [OPTIONS] COMMAND [ARGS]...
Try 'gitlint --help' for help.
Error: No such command '.pre-commit-config.yaml'.
This is after I run:
pip install gitlint
pre-commit install --hook-type commit-msg
What am I doing wrong?