Skip to content

Commit 39ba9a5

Browse files
authored
feat: ✨ pre-commit hook to check for conflicts (#102)
# Description These changes add a hook to check for conflicts. This is most useful when updating the data package from the template. Closes #96 This PR needs a quick review. ## Checklist - [x] Ran `just run-all`
1 parent d8459b0 commit 39ba9a5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ repos:
1515
hooks:
1616
- id: trailing-whitespace
1717
- id: end-of-file-fixer
18+
- id: check-merge-conflict
19+
args: [--assume-in-merge]
1820

1921
- repo: https://github.com/commitizen-tools/commitizen
2022
rev: v4.8.3

template/.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ repos:
1515
hooks:
1616
- id: trailing-whitespace
1717
- id: end-of-file-fixer
18+
- id: check-merge-conflict
19+
args: [--assume-in-merge]
1820

1921
- repo: https://github.com/commitizen-tools/commitizen
2022
rev: v4.8.3

0 commit comments

Comments
 (0)