Skip to content

Commit 296ab18

Browse files
authored
chore: add pre-commit configuration [WPB-8645] (#4594)
1 parent e1901f1 commit 296ab18

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
default_install_hook_types:
4+
- pre-commit
5+
- commit-msg
6+
7+
repos:
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v5.0.0
10+
hooks:
11+
- id: check-added-large-files
12+
- id: check-case-conflict
13+
- id: check-merge-conflict
14+
- id: check-executables-have-shebangs
15+
- id: check-symlinks
16+
- id: check-json
17+
- id: check-toml
18+
- id: check-yaml
19+
- id: mixed-line-ending
20+
args: [--fix=no]
21+
- id: end-of-file-fixer
22+
- id: trailing-whitespace
23+
- repo: https://github.com/compilerla/conventional-pre-commit
24+
rev: v3.6.0
25+
hooks:
26+
- id: conventional-pre-commit
27+
stages: [commit-msg]
28+
args: [chore, build, refactor, fix, feat, test, ci, docs, wip, release] # git log --oneline | cut -d' ' -f2- | rg '^[^:(!]+' -o | sort | uniq -c | sort -rn | rg -v '^\s*1 '
29+
- repo: https://github.com/shellcheck-py/shellcheck-py
30+
rev: v0.10.0.1
31+
hooks:
32+
- id: shellcheck

0 commit comments

Comments
 (0)