Skip to content

Commit

Permalink
Merge pull request #299 from s-weigand/add-drone-ci
Browse files Browse the repository at this point in the history
✨ Add Drone-CI as vendored schema
  • Loading branch information
sirosen committed Aug 11, 2023
2 parents f7de7c1 + 40ff72d commit 6a17e37
Show file tree
Hide file tree
Showing 14 changed files with 958 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dist/
.coverage
.coverage.*
.tox
.vscode
11 changes: 11 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@
files: ^\.github/dependabot.(yml|yaml)$
types: [yaml]

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

# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
Expand Down
14 changes: 14 additions & 0 deletions docs/precommit_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@ Validate Dependabot Config (v2) against the schema provided by SchemaStore
- id: check-dependabot
``check-drone-ci``
~~~~~~~~~~~~~~~~~~

Validate Drone-CI Config against the schema provided by SchemaStore

.. code-block:: yaml
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.24.1
hooks:
- id: check-drone-ci
``check-github-actions``
~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ SchemaStore and other sources:
- ``vendor.bitbucket-pipelines``
- ``vendor.buildkite``
- ``vendor.dependabot``
- ``vendor.drone-ci``
- ``vendor.github-actions``
- ``vendor.github-workflows``
- ``vendor.gitlab-ci``
Expand Down

0 comments on commit 6a17e37

Please sign in to comment.