-
Notifications
You must be signed in to change notification settings - Fork 57
/
.pre-commit-config.yaml
61 lines (61 loc) · 1.9 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: remark
name: remark
language: docker_image
entry: civicactions/guidebook-lint:latest remark.sh
always_run: true
pass_filenames: false
verbose: true
- id: mkdocs
name: mkdocs
language: script
entry: ./.config/mkdocs/mkdocs.sh
always_run: true
pass_filenames: false
verbose: true
- id: link-check
name: link-check
language: docker_image
entry: --entrypoint node civicactions/guidebook-lint:latest /usr/src/node_modules/.bin/markdown-link-check -q -c .config/markdown.links.config.json --
types: [markdown]
always_run: true
pass_filenames: true
- id: prettier
name: prettier
entry: prettier --write --ignore-unknown
language: node
types: [text]
additional_dependencies: ["prettier@3.3.3"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: check-yaml
args: ["--unsafe"]
- id: check-json
- id: check-added-large-files
- repo: https://github.com/mattlqx/pre-commit-search-and-replace
rev: v1.1.8
hooks:
- id: search-and-replace
language_version: default
types: [markdown]
args:
- "--config=.config/pre-commit-search-and-replace.yaml"
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
types: [markdown]
args:
- "--ignore-words=.config/codespell-ignore"
ci:
# We skip checks that have their own actions or external dependencies.
skip: [remark, codespell, mkdocs, link-check]