-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (42 loc) · 1.16 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (42 loc) · 1.16 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
ci:
autofix_commit_msg: "style: auto-fixes from pre-commit.ci hooks"
autofix_prs: true
autoupdate_commit_msg: "chore: pre-commit autoupdate"
autoupdate_schedule: weekly
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
# Whitespace and formatting
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
# File checks
- id: check-added-large-files
args: ["--maxkb=1000"]
- id: check-case-conflict
- id: check-merge-conflict
# Syntax validation
- id: check-yaml
- id: check-json
- id: check-toml
# Security
- id: detect-private-key
# Git
- id: check-symlinks
- id: destroyed-symlinks
- repo: https://github.com/crate-ci/typos
rev: v1.40.0
hooks:
- id: typos
args: []
stages: [pre-commit]
exclude: ^client/(ios|macos|android|windows|linux)/|client/lib/generated/.*\.(pb|pbjson)\.dart$
- id: typos
name: commit-msg-typos
stages: [commit-msg]