-
-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (57 loc) · 1.59 KB
/
.pre-commit-config.yaml
File metadata and controls
63 lines (57 loc) · 1.59 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
56
57
58
59
60
61
62
63
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
- id: detect-private-key
- id: end-of-file-fixer
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
- id: check-github-actions
- id: check-github-workflows
args: [--verbose]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
- repo: local
hooks:
- id: format-json
name: Format JSON
description: "Format JSON"
files: ^.*\.json$
types_or: [json]
entry: dprint
language: system
args:
- "fmt"
- id: format-markdown
name: Format Markdown
description: "Format Markdown"
files: ^.*\.md$
types_or: [markdown]
entry: dprint
language: system
args:
- "fmt"
- id: format-yaml
name: Format YAML
description: "Format YAML"
files: ^.*\.(yaml|yml)$
types_or: [yaml]
entry: dprint
language: system
args:
- "fmt"
- id: check-testing-disabled
name: Check testing is disabled
description: "Ensure Package.swift has testing disabled and Package.resolved is not committed"
files: ^(Package\.swift|Package\.resolved)$
entry: .git-hooks/check-testing-disabled.sh
language: script