Skip to content

Commit 6a17e37

Browse files
authored
Merge pull request #299 from s-weigand/add-drone-ci
✨ Add Drone-CI as vendored schema
2 parents f7de7c1 + 40ff72d commit 6a17e37

File tree

14 files changed

+958
-0
lines changed

14 files changed

+958
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dist/
66
.coverage
77
.coverage.*
88
.tox
9+
.vscode

.pre-commit-hooks.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@
7979
files: ^\.github/dependabot.(yml|yaml)$
8080
types: [yaml]
8181

82+
# this hook is autogenerated from a script
83+
# to modify this hook, update `src/check_jsonschema/catalog.py`
84+
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
85+
- id: check-drone-ci
86+
name: Validate Drone-CI Config
87+
description: 'Validate Drone-CI Config against the schema provided by SchemaStore'
88+
entry: check-jsonschema --builtin-schema vendor.drone-ci
89+
language: python
90+
files: ^\.drone\.yml$
91+
types: [yaml]
92+
8293
# this hook is autogenerated from a script
8394
# to modify this hook, update `src/check_jsonschema/catalog.py`
8495
# and run `make generate-hooks` or `tox run -e generate-hooks-config`

docs/precommit_usage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@ Validate Dependabot Config (v2) against the schema provided by SchemaStore
113113
- id: check-dependabot
114114
115115
116+
``check-drone-ci``
117+
~~~~~~~~~~~~~~~~~~
118+
119+
Validate Drone-CI Config against the schema provided by SchemaStore
120+
121+
.. code-block:: yaml
122+
:caption: example config
123+
124+
- repo: https://github.com/python-jsonschema/check-jsonschema
125+
rev: 0.24.1
126+
hooks:
127+
- id: check-drone-ci
128+
129+
116130
``check-github-actions``
117131
~~~~~~~~~~~~~~~~~~~~~~~~
118132

docs/usage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ SchemaStore and other sources:
7777
- ``vendor.bitbucket-pipelines``
7878
- ``vendor.buildkite``
7979
- ``vendor.dependabot``
80+
- ``vendor.drone-ci``
8081
- ``vendor.github-actions``
8182
- ``vendor.github-workflows``
8283
- ``vendor.gitlab-ci``

0 commit comments

Comments
 (0)