Skip to content

Commit

Permalink
Add Woodpecker-CI schema
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jan 21, 2024
1 parent 0172560 commit bbf073d
Show file tree
Hide file tree
Showing 6 changed files with 936 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,18 @@
language: python
files: ^\.travis\.(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-woodpecker-ci
name: Validate Woodpecker Config
description: 'Validate Woodpecker Config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.woodpecker-ci
language: python
files: >
(?x)^(
^\.woodpecker\.(yml|yaml)$|
^\.woodpecker/.+\.(yml|yaml)$
)$
types: [yaml]
14 changes: 14 additions & 0 deletions docs/precommit_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,20 @@ Validate Travis Config against the schema provided by SchemaStore
- id: check-travis
``check-woodpecker-ci``
~~~~~~~~~~~~~~~~~~~~~~~

Validate Woodpecker Config against the schema provided by SchemaStore

.. code-block:: yaml
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
- id: check-woodpecker-ci
.. generated-hook-list-end
Expand Down
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ SchemaStore and other sources:
- ``vendor.readthedocs``
- ``vendor.renovate``
- ``vendor.travis``
- ``vendor.woodpecker-ci``

.. vendored-schema-list-end
Expand Down

0 comments on commit bbf073d

Please sign in to comment.