-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (49 loc) · 1.7 KB
/
.pre-commit-config.yaml
File metadata and controls
55 lines (49 loc) · 1.7 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
---
repos:
# Standard fille formatting / hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
# See: https://github.com/pre-commit/pre-commit-hooks/releases
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
# The json format/linter/fixer does not like jsonc/json5 like the VS code stuff
- id: check-json
exclude: &vscode_json_exclude |
(?x)^(
^\.vscode/.*\.json$
)$
- id: pretty-format-json
exclude: *vscode_json_exclude
args:
- --autofix
# Note: this hook does not honor the .editorconfig value so
# they need to be kept in sync manually
- --indent=4
# Do not convert extended unicode characters to escape sequences
- --no-ensure-ascii
- repo: https://github.com/ericmjl/webp-pre-commit
rev: v0.0.12
hooks:
- id: convert-to-webp
# Fix any markdown issues w/ the rendered docs
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.0
hooks:
- id: markdownlint-cli2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.11
hooks:
# Lint, fixing what can be automatically fixed
- id: ruff-check
args:
- --fix
# Format to ensure consistent style
- id: ruff-format
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [ commit-msg ]
args: []