-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.lefthook.yaml
More file actions
48 lines (41 loc) · 892 Bytes
/
Copy path.lefthook.yaml
File metadata and controls
48 lines (41 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
assert_lefthook_installed: true
skip_lfs: true
prepare-commit-msg:
commands:
commitzen:
interactive: true
run: bash -lc 'cz check --message "$(cat {1})"'
env:
LEFTHOOK: "0"
commit-msg:
commands:
"lint commit message":
run: commitlint --edit {1}
pre-commit:
parallel: true
jobs:
- name: format yaml
glob: "*.yaml"
run: yamlfmt {staged_files}
tags:
- format
stage_fixed: true
- name: check links
tags:
- docs
run: lychee --max-concurrency 3 {staged_files}
glob: '*.md'
exclude:
- CHANGELOG.md
- name: format markdown
glob: "*.md"
run: prettier --write {staged_files}
tags:
- docs
stage_fixed: true
- name: fix typos
tags:
- lint
run: typos --write-changes {staged_files}
stage_fixed: true