This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
128 lines (111 loc) · 3.82 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
# General
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: mixed-line-ending # Replaces or checks mixed line ending.
- id: trailing-whitespace
# Json
- id: check-json
# General
- repo: https://github.com/sirosen/texthooks
rev: 0.4.0
hooks:
- id: fix-smartquotes
- id: fix-ligatures
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.2
hooks:
- id: prettier
stages: [commit]
# Git
- repo: https://github.com/jorisroovers/gitlint
rev: v0.17.0
hooks:
- id: gitlint
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.18.3
hooks:
- id: check-github-workflows
# YAML
- repo: https://github.com/adrienverge/yamllint
rev: v1.28.0
hooks:
- id: yamllint
args: [-c=.yamllint.yml]
# Mixed
# - repo: https://github.com/editorconfig-checker/editorconfig-checker.python
# rev: 2.6.1
# hooks:
# - id: editorconfig-checker
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: git-check # Configure in .gitattributes
- id: script-must-have-extension
- id: script-must-not-have-extension
- id: shellcheck
args: [--external-sources, --format=gcc, --shell=bash]
- id: shfmt
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
hooks:
- id: remove-crlf
- id: remove-tabs
exclude: .git/COMMIT_EDITMSG
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.18.3
hooks:
- id: check-github-actions
- id: check-github-workflows
- id: check-readthedocs
- repo: https://github.com/zricethezav/gitleaks
rev: v8.15.0
hooks:
- id: gitleaks
- repo: https://github.com/rhysd/actionlint
rev: v1.6.21
hooks:
- id: actionlint
- repo: https://github.com/RyoWakabayashi/pre-commit-mirrors-textlint
rev: v12.2.1
hooks:
- id: textlint
additional_dependencies:
[
'textlint',
'textlint-plugin-latex2e',
'textlint-filter-rule-comments',
'textlint-rule-alex',
'textlint-rule-apostrophe',
'textlint-rule-common-misspellings',
'textlint-rule-diacritics',
'textlint-rule-doubled-spaces',
'textlint-rule-editorconfig',
'textlint-rule-en-capitalization',
'textlint-rule-en-spell',
'textlint-rule-max-number-of-lines',
'textlint-rule-no-dead-link',
'textlint-rule-no-empty-section',
'textlint-rule-no-start-duplicated-conjunction',
'textlint-rule-no-todo',
'textlint-rule-stop-words',
'textlint-rule-terminology',
'textlint-rule-write-good',
'textlint-rule-unexpanded-acronym',
'@textlint-rule/textlint-rule-no-duplicate-abbr',
'@textlint-rule/textlint-rule-no-invalid-control-character',
]