forked from MystenLabs/walrus-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (35 loc) · 902 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
35 lines (35 loc) · 902 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: trailing-whitespace
- id: check-symlinks
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.2.0
hooks:
- id: editorconfig-checker
alias: ec
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.17.2
hooks:
- id: markdownlint-cli2
args: ["--fix"]
pass_filenames: false
- repo: https://github.com/crate-ci/typos
rev: v1.29.5
hooks:
- id: typos
pass_filenames: false
- repo: local
hooks:
- id: mdBook
name: Build mdBook if it is installed
language: system
entry: bash -c 'which mdbook && mdbook build || ! which mdbook >> /dev/null'
files: 'book.toml|docs/.*'
pass_filenames: false