Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
67 lines (60 loc) · 1.64 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
67 lines (60 loc) · 1.64 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
64
65
66
67
## You can find more hooks here https://pre-commit.com/hooks.html
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/rubocop/rubocop
rev: v1.82.1
hooks:
- id: rubocop
args: [--force-exclusion]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.0
hooks:
- id: check-github-actions
- id: check-github-workflows
args: [--verbose]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
files: ^(script/|bin/).*\.(sh|bash)$
- repo: local
hooks:
- id: format-markdown
name: Format Markdown
description: "Format Markdown files with dprint"
files: ^.*\.md$
types_or: [markdown]
entry: dprint
language: system
args:
- "fmt"
- id: format-json
name: Format JSON
description: "Format JSON files with dprint"
files: ^.*\.json$
types_or: [json]
entry: dprint
language: system
args:
- "fmt"
- id: format-yaml
name: Format YAML
description: "Format YAML files with dprint"
files: ^.*\.(yaml|yml)$
types_or: [yaml]
entry: dprint
language: system
args:
- "fmt"