Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 791c777

Browse files
committed
ci: Vendor remote YAML schemas
This is necessary because pre-commit CI doesn't have Internet access and thus cannot download schemas itself.
1 parent 43a9b35 commit 791c777

11 files changed

+4468
-11
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,31 +85,30 @@ repos:
8585
# - id: check-azure-pipelines
8686
- id: check-dependabot
8787
- id: check-github-workflows
88+
# NOTE: If any of the below schema files need to be changed, be sure to
89+
# update the `ci/vendor_schemas.py` script.
8890
- id: check-jsonschema
8991
files: ^\.appveyor\.yml$
90-
args: ["--verbose", "--schemafile", "https://json.schemastore.org/appveyor.json"]
92+
args: ["--verbose", "--schemafile", "ci/schemas/appveyor.json"]
9193
- id: check-jsonschema
9294
files: ^\.circleci/config\.yml$
93-
args: ["--verbose", "--schemafile", "https://json.schemastore.org/circleciconfig.json"]
95+
args: ["--verbose", "--schemafile", "ci/schemas/circleciconfig.json"]
9496
- id: check-jsonschema
9597
files: ^\.github/FUNDING\.yml$
96-
args: ["--verbose", "--schemafile", "https://json.schemastore.org/github-funding.json"]
98+
args: ["--verbose", "--schemafile", "ci/schemas/github-funding.json"]
9799
- id: check-jsonschema
98100
files: ^\.github/ISSUE_TEMPLATE/config\.yml$
99-
args: ["--verbose", "--schemafile", "https://json.schemastore.org/github-issue-config.json"]
101+
args: ["--verbose", "--schemafile", "ci/schemas/github-issue-config.json"]
100102
- id: check-jsonschema
101103
files: ^\.github/ISSUE_TEMPLATE/.*\.yml$
102104
exclude: ^\.github/ISSUE_TEMPLATE/config\.yml$
103-
args: ["--verbose", "--schemafile", "https://json.schemastore.org/github-issue-forms.json"]
105+
args: ["--verbose", "--schemafile", "ci/schemas/github-issue-forms.json"]
104106
- id: check-jsonschema
105107
files: ^\.github/codecov\.yml$
106-
args: ["--verbose", "--schemafile", "https://json.schemastore.org/codecov.json"]
108+
args: ["--verbose", "--schemafile", "ci/schemas/codecov.json"]
107109
- id: check-jsonschema
108110
files: ^\.github/labeler\.yml$
109-
args: ["--verbose", "--schemafile", "https://json.schemastore.org/pull-request-labeler-5.json"]
111+
args: ["--verbose", "--schemafile", "ci/schemas/pull-request-labeler-5.json"]
110112
- id: check-jsonschema
111113
files: ^environment\.yml$
112-
args:
113-
- "--verbose"
114-
- "--schemafile"
115-
- "https://github.com/microsoft/vscode-python/raw/main/schemas/conda-environment.json"
114+
args: ["--verbose", "--schemafile", "ci/schemas/conda-environment.json"]

ci/schemas/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)