This replaces GitCommitBear with GitLint which does similar
linting for git commit messages but using pre-commit hooks.
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I3480ad81702fa6b5015523a7274e219ba2f240d0
.pytest_cache/**,
node_modules/**
-[all.Git]
-bears = GitCommitBear
-ignore_length_regex = Signed-off-by,
- Also-by,
- Co-authored-by,
- http://,
- https://
-
[all.Documentation]
bears = WriteGoodLintBear
files = docs/**/*.rst
rev: v1.3.0
hooks:
- id: trailing-whitespace
+
+ - repo: https://github.com/jorisroovers/gitlint
+ rev: v0.12.0
+ hooks:
+ - id: gitlint
basepython = python3
deps = pre-commit
commands =
- pre-commit install
pre-commit run --all-files
+ pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
[testenv:reno]
basepython = python3