Skip to content

Commit ece0fc0

Browse files
committed
Verify schemas on YAML files
1 parent d640e61 commit ece0fc0

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ test_script:
9494
artifacts:
9595
- path: result_images\*
9696
name: result_images
97-
type: zip
97+
type: Zip
9898

9999
on_finish:
100100
- conda install codecov

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ body:
88
attributes:
99
label: Bug summary
1010
description: Describe the bug in 1-2 short sentences
11-
placeholder:
12-
value:
1311
validations:
1412
required: true
1513
- type: textarea
@@ -19,7 +17,7 @@ body:
1917
description: >-
2018
If possible, please provide a minimum self-contained example.
2119
placeholder: Paste your code here. This field is automatically formatted as Python code.
22-
render: python
20+
render: Python
2321
validations:
2422
required: true
2523
- type: textarea

.github/codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ coverage:
1414
target: 50%
1515
if_no_uploads: error
1616
if_not_found: success
17-
if_ci_failed: failure
17+
if_ci_failed: error
1818
project:
1919
default: false
2020
library:
2121
target: 50%
2222
if_no_uploads: error
2323
if_not_found: success
24-
if_ci_failed: failure
24+
if_ci_failed: error
2525
paths:
2626
- '!lib/.*/tests/.*'
2727
tests:
2828
target: auto
2929
if_no_uploads: error
3030
if_not_found: success
31-
if_ci_failed: failure
31+
if_ci_failed: error
3232
paths:
3333
- 'lib/.*/tests/.*'

.pre-commit-config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,37 @@ 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/config\.yml$
98+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/github-issue-config.json"]
99+
- id: check-jsonschema
100+
files: ^\.github/ISSUE_TEMPLATE/.*\.yml$
101+
exclude: ^\.github/ISSUE_TEMPLATE/config\.yml$
102+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/github-issue-forms.json"]
103+
- id: check-jsonschema
104+
files: ^\.github/codecov\.yml$
105+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/codecov.json"]
106+
- id: check-jsonschema
107+
files: ^\.github/labeler\.yml$
108+
args: ["--verbose", "--schemafile", "https://json.schemastore.org/pull-request-labeler-5.json"]
109+
- id: check-jsonschema
110+
files: ^environment\.yml$
111+
args:
112+
- "--verbose"
113+
- "--schemafile"
114+
- "https://github.com/microsoft/vscode-python/raw/main/schemas/conda-environment.json"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy