-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy path.pre-commit-config.yaml
73 lines (66 loc) · 1.93 KB
/
.pre-commit-config.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: [commit-msg, pre-commit]
default_stages: [pre-commit, manual]
fail_fast: true
repos:
- repo: "https://github.com/commitizen-tools/commitizen"
rev: v4.1.0
hooks:
- id: commitizen
- id: commitizen-branch
stages:
- post-commit
- pre-push
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-json
exclude: ".tmpl$|^dotfiles/.chezmoitemplates/"
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
exclude: ".tmpl$|^dotfiles/.chezmoitemplates/"
- id: check-yaml
exclude: ".tmpl$|^dotfiles/.chezmoitemplates/"
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: "https://github.com/crate-ci/typos"
rev: dictgen-v0.3.1
hooks:
- id: typos
args: ["--force-exclude"]
- repo: local
hooks:
# This calls a custom pre-commit script.
# Disable if you don't have it.
- id: stopwords
name: stopwords
entry: git-stopwords
# args: ["-v"]
language: system
pass_filenames: true
types: [text]
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
types: [shell]
exclude: "dotfiles/dot_zshrc|.*\\.zsh$"
ci:
autofix_commit_msg: |
fix: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_commit_msg: "build: pre-commit autoupdate"
autoupdate_schedule: quarterly
skip: [stopwords, shellcheck]
submodules: false