-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (50 loc) · 1.4 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (50 loc) · 1.4 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
default_install_hook_types: [pre-commit]
default_stages: [pre-commit, pre-merge-commit]
default_language_version:
python: python3.14
repos:
- repo: https://github.com/gitleaks/gitleaks.git
rev: v8.30.0
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args: [--maxkb=2048]
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
exclude: "^layouts/_default/rss.xml$"
- id: check-yaml
exclude: "validity.yaml$"
- id: debug-statements
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
- repo: local
hooks:
- id: yaml-sort-i18n
name: Sort i18n YAML files
entry: npx yaml-sort -i
language: system
files:
glob:
- "i18n/*.yaml"
- repo: local
hooks:
- id: prettier
name: prettier
entry: prettier --write
language: node
types_or: [javascript, scss, html, markdown]
additional_dependencies:
- "prettier@3.6.2"
- "prettier-plugin-go-template@0.0.6"