Skip to content

Commit 6856d2b

Browse files
Anis Da Silva Campossebastien-boulle
authored andcommitted
chore(hook): add pre-commit to validate commits
using validator on its own repo
1 parent 5e29849 commit 6856d2b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
---
22
repos:
3+
- repo: ./
4+
rev: 1d903d35d82a0787e25d22315d62022652880c3b
5+
hooks:
6+
- id: commit-message-validator
7+
stages: [commit-msg]
8+
args: [--no-jira, --allow-temp]
9+
310
- repo: https://github.com/adrienverge/yamllint.git
411
rev: v1.24.2
512
hooks:

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pre-commit=./venv/bin/pre-commit
1313
venv:
1414
python3.7 -m venv venv
1515
$(pip) install pre-commit
16+
$(pre-commit) install -t commit-msg
1617

1718
lint:
1819
$(pre-commit) run --all-files

0 commit comments

Comments
 (0)