Skip to content

Commit dfad829

Browse files
committed
Verify schemas on YAML files
1 parent 88f7d75 commit dfad829

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.pre-commit-config.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,33 @@ repos:
7878
hooks:
7979
- id: yamllint
8080
args: ["--strict", "--config-file=.yamllint.yml"]
81+
- repo: https://github.com/python-jsonschema/check-jsonschema
82+
rev: 0.27.3
83+
hooks:
84+
- id: check-azure-pipelines
85+
- id: check-dependabot
86+
- id: check-github-workflows
87+
- id: check-jsonschema
88+
files: ^\.appveyor.yml$
89+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/appveyor.json"]
90+
- id: check-jsonschema
91+
files: ^\.circleci/config.yml$
92+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/circleciconfig.json"]
93+
- id: check-jsonschema
94+
files: ^\.github/FUNDING.yml$
95+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/github-funding.json"]
96+
- id: check-jsonschema
97+
files: ^\.github/ISSUE_TEMPLATE/.*\.yml$
98+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/github-issue-config.json"]
99+
- id: check-jsonschema
100+
files: ^\.github/codecov.yml$
101+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/codecov.json"]
102+
- id: check-jsonschema
103+
files: ^\.github/labeler.yml$
104+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/pull-request-labeler.json"]
105+
- id: check-jsonschema
106+
files: ^environment.yml$
107+
args:
108+
- "--verbose"
109+
- "--schemafile"
110+
- "https://github.com/microsoft/vscode-python/raw/main/schemas/conda-environment.json"

0 commit comments

Comments
 (0)