-
-
Notifications
You must be signed in to change notification settings - Fork 310
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
91 lines (79 loc) · 2.97 KB
/
.pre-commit-config.yaml
File metadata and controls
91 lines (79 loc) · 2.97 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.2
hooks:
- id: check-jsonschema
name: Validate Guide only Custom Formats
files: ^docs/json/guide-only/[^/]+$
types: [json]
args: ["-v", "--schemafile", "schemas/guide-only-cf.schema.json"]
- id: check-jsonschema
name: Validate Radarr Custom Formats
files: ^docs/json/radarr/cf/[^/]+$
types: [json]
args: ["-v", "--schemafile", "schemas/radarr-cf.schema.json"]
- id: check-jsonschema
name: Validate Sonarr Custom Formats
files: ^docs/json/sonarr/cf/[^/]+$
types: [json]
args: ["-v", "--schemafile", "schemas/sonarr-cf.schema.json"]
- id: check-jsonschema
name: Validate Radarr CF Groups
files: ^docs/json/radarr/cf-groups/[^/]+\.json$
types: [json]
args: ["-v", "--schemafile", "schemas/cf-groups.schema.json"]
- id: check-jsonschema
name: Validate Sonarr CF Groups
files: ^docs/json/sonarr/cf-groups/[^/]+\.json$
types: [json]
args: ["-v", "--schemafile", "schemas/cf-groups.schema.json"]
- id: check-jsonschema
name: Validate Radarr Naming
files: ^docs/json/radarr/naming/[^/]+\.json$
types: [json]
args: ["-v", "--schemafile", "schemas/radarr-naming.schema.json"]
- id: check-jsonschema
name: Validate Sonarr Naming
files: ^docs/json/sonarr/naming/[^/]+\.json$
types: [json]
args: ["-v", "--schemafile", "schemas/sonarr-naming.schema.json"]
- id: check-jsonschema
name: Validate Conflicts
files: ^docs/json/(radarr|sonarr)/conflicts\.json$
types: [json]
args: ["-v", "--schemafile", "schemas/conflicts.schema.json"]
- repo: local
hooks:
- id: validate-custom-formats
name: Validate Custom Formats
entry: python scripts/validate-custom-formats.py
language: python
pass_filenames: false
files: >-
^docs/json/(radarr|sonarr)/(cf|cf-groups|quality-profiles)/|^docs/json/(radarr|sonarr)/conflicts\.json$
- id: validate-quality-profiles
name: Validate Quality Profiles
entry: python scripts/validate-quality-profiles.py
language: python
pass_filenames: false
files: >-
^docs/json/(radarr|sonarr)/(cf|quality-profiles|quality-profile-groups|cf-groups)/
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
name: YAML Lint
types: [yaml]
args: ["-c", ".yamllint.yml"]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
hooks:
- id: markdownlint-fix
name: Markdown Lint (autofix)
types: [markdown]
args: ["-c", ".markdownlint.yaml"]
- repo: https://github.com/editorconfig-checker/editorconfig-checker
rev: v3.7.0
hooks:
- id: editorconfig-checker
name: EditorConfig Lint