-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
98 lines (90 loc) · 2.94 KB
/
.pre-commit-config.yaml
File metadata and controls
98 lines (90 loc) · 2.94 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
exclude: '^\.config/.*|^\.local/.*'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: check-symlinks
- id: check-yaml
exclude: '^\.local/share/.*'
- id: double-quote-string-fixer
- id: end-of-file-fixer
exclude: '^\.local/share/.*'
- id: trailing-whitespace
exclude: '^\.local/share/.*'
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
exclude: '^\.config/.*|^\.local/.*|^\.shellrc/zshrc\.d/.*|\.zsh(##.*)?$|^\.zlogin$|\.sh##default$'
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 42.78.0
hooks:
- id: renovate-config-validator
args: [--strict]
- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
hooks:
- id: yamllint
args: ["-c", ".yamllint.yml"]
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v2.3.1
hooks:
- id: stylua
name: stylua (check)
args: ["--check", "--config-path", ".config/nvim/.stylua.toml"]
- id: stylua
name: stylua (fix)
alias: stylua-fix
args: ["--config-path", ".config/nvim/.stylua.toml"]
stages: [manual]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
name: prettier (check)
types_or: [json, markdown, yaml]
- id: prettier
name: prettier (fix)
alias: prettier-fix
args: ["--write", "--list-different"]
types_or: [json, markdown, yaml]
stages: [manual]
- repo: local
hooks:
- id: standardrb
name: standardrb (check)
entry: bash -c 'BUNDLE_GEMFILE=~/.shellrc/zshrc.d/functions/scripts/Gemfile bundle exec standardrb "$@"' --
language: system
types: [ruby]
- id: standardrb-fix
name: standardrb (fix)
entry: bash -c 'BUNDLE_GEMFILE=~/.shellrc/zshrc.d/functions/scripts/Gemfile bundle exec standardrb --fix "$@"' --
language: system
types: [ruby]
stages: [manual]
- id: markdownlint-cli2
name: markdownlint-cli2
entry: npx markdownlint-cli2
language: system
types: [markdown]
stages: [manual]
- id: markdownlint-cli2-fix
name: markdownlint-cli2-fix
entry: npx markdownlint-cli2 --fix
language: system
types: [markdown]
stages: [manual]
- id: zsh-syntax-check
name: zsh syntax check
entry: zsh -n
language: system
files: '\.zsh(##.*)?$|^\.zlogin$|^\.shellrc/zshrc\.d/functions/[^/]+$'
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.6.0
hooks:
- id: editorconfig-checker
exclude: '^\.config/.*|^\.local/.*|^\.shellrc/zshrc\.d/functions/scripts/.*\.rb$|\.md$'