-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (49 loc) · 1.4 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (49 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
args: [--unsafe] # Allow custom YAML tags
- id: check-toml
- id: end-of-file-fixer
exclude: ^(docs/|coco/private/known_shas\.bzl$)
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
exclude: ^(docs/|coco/private/known_shas\.bzl$)
- repo: https://github.com/keith/pre-commit-buildifier
rev: 8.2.1
hooks:
- id: buildifier
args: &args
- --warnings=all
exclude: ^coco/private/known_shas\.bzl$
- id: buildifier-lint
args: *args
exclude: ^coco/private/known_shas\.bzl$
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.13.10
hooks:
- id: commitizen
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
exclude: ^(docs/|renovate\.json$)
types_or:
- markdown
- yaml
- json
- repo: https://github.com/crate-ci/typos
rev: v1.45.1
hooks:
- id: typos