Skip to content

Commit 1ef4868

Browse files
committed
chore: use pre-commit
1 parent ce3ddc2 commit 1ef4868

File tree

2 files changed

+28
-21
lines changed

2 files changed

+28
-21
lines changed

.git-hooks/commit-msg

Lines changed: 0 additions & 21 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
- prepare-commit-msg
5+
6+
default_stages: [pre-commit]
7+
8+
repos:
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: v3.2.0
11+
hooks:
12+
- id: check-case-conflict
13+
- id: check-merge-conflict
14+
- id: trailing-whitespace
15+
- id: mixed-line-ending
16+
- id: end-of-file-fixer
17+
- id: check-yaml
18+
- id: check-json
19+
- id: check-xml
20+
- id: check-added-large-files
21+
args: [ '--maxkb=50' ]
22+
23+
- repo: https://github.com/compilerla/conventional-pre-commit
24+
rev: v3.1.0
25+
hooks:
26+
- id: conventional-pre-commit
27+
stages: [ commit-msg ]
28+
args: [ --strict ]

0 commit comments

Comments
 (0)