Skip to content

Commit b062026

Browse files
committed
feat: ✨ add rumdl pre-commit hook
1 parent ea9707c commit b062026

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 1 deletion
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.13.7
@@ -25,6 +27,11 @@ repos:
2527
# sub-packages, which confuses pre-commit when it tries to find the latest
2628
# version
2729
- repo: https://github.com/adhtruong/mirrors-typos
28-
rev: v1.43.3
30+
rev: v1.43.4
2931
hooks:
3032
- id: typos
33+
34+
- repo: https://github.com/rvben/rumdl-pre-commit
35+
rev: v0.1.18
36+
hooks:
37+
- id: rumdl-fmt # Auto-format

template/.pre-commit-config.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,23 @@ 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
20-
rev: v4.12.1
22+
rev: v4.13.7
2123
hooks:
2224
- id: commitizen
2325

2426
# Use the mirror since the main `typos` repo has tags for different
2527
# sub-packages, which confuses pre-commit when it tries to find the latest
2628
# version
2729
- repo: https://github.com/adhtruong/mirrors-typos
28-
rev: v1.42.3
30+
rev: v1.43.4
2931
hooks:
3032
- id: typos
33+
34+
- repo: https://github.com/rvben/rumdl-pre-commit
35+
rev: v0.1.18
36+
hooks:
37+
- id: rumdl-fmt # Auto-format

0 commit comments

Comments
 (0)