-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
79 lines (79 loc) · 2.26 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
74
75
76
77
78
79
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: check-executables-have-shebangs
- id: check-json
types: [file]
files: \.(json)$
- id: check-merge-conflict
- id: check-yaml
args:
- --allow-multiple-documents
- id: debug-statements
- id: double-quote-string-fixer
- id: end-of-file-fixer
exclude: ^obsidian/
- id: pretty-format-json
args: [--autofix, --indent=4]
types: [text]
files: \.(json)$
exclude: ^obsidian/
- id: mixed-line-ending
exclude: \.plist$
- id: trailing-whitespace
- repo: local
hooks:
- id: shfmt
name: shfmt
minimum_pre_commit_version: 2.4.0
language: golang
additional_dependencies: [mvdan.cc/sh/v3/cmd/[email protected]]
entry: shfmt
args: ["-w", "-i", "4"]
types: [shell]
exclude_types: ["zsh"]
- id: shellcheck
name: ShellCheck
description: Static analysis tool for shell scripts (installed via CLI)
language: system
entry: shellcheck
types: [shell]
exclude_types: ["zsh"]
- id: prettier
name: prettier
language: node
entry: prettier
args: ["--write", "--config", ".prettierrc.json"]
files: \.(sublime-settings$)
# - repo: https://github.com/btford/write-good
# rev: v1.0.4
# hooks:
# - id: write-good
# args: ["--no-passive", "--no-tooWordy"]
# exclude: ^obsidian/
# - repo: https://github.com/amperser/proselint
# rev: 0.12.0
# hooks:
# - id: proselint
# files: "\\.(rst|md|markdown|mdown|mkdn)$"
- repo: https://github.com/openstack/bashate
rev: 2.1.0
hooks:
- id: bashate
args: ["--max-line-length", "100", "--ignore", "E006,E040,E044"]
# - repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
# rev: v1.1.2
# hooks:
# - id: markdown-toc
# args: ["-i", "--bullets", "-"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-tabs
files: "etc/git"
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint-fix