Skip to content

Commit 736aa79

Browse files
authored
Merge pull request #380 from 6543-forks/vendor_woodpecker-ci
Add Woodpecker-CI schema
2 parents f6cf813 + ce0b962 commit 736aa79

File tree

6 files changed

+937
-0
lines changed

6 files changed

+937
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,18 @@
174174
language: python
175175
files: ^\.travis\.(yml|yaml)$
176176
types: [yaml]
177+
178+
# this hook is autogenerated from a script
179+
# to modify this hook, update `src/check_jsonschema/catalog.py`
180+
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
181+
- id: check-woodpecker-ci
182+
name: Validate Woodpecker Config
183+
description: 'Validate Woodpecker Config against the schema provided by SchemaStore'
184+
entry: check-jsonschema --builtin-schema vendor.woodpecker-ci
185+
language: python
186+
files: >
187+
(?x)^(
188+
^\.woodpecker\.(yml|yaml)$|
189+
^\.woodpecker/.+\.(yml|yaml)$
190+
)$
191+
types: [yaml]

docs/precommit_usage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,20 @@ Validate Travis Config against the schema provided by SchemaStore
225225
- id: check-travis
226226
227227
228+
``check-woodpecker-ci``
229+
~~~~~~~~~~~~~~~~~~~~~~~
230+
231+
Validate Woodpecker Config against the schema provided by SchemaStore
232+
233+
.. code-block:: yaml
234+
:caption: example config
235+
236+
- repo: https://github.com/python-jsonschema/check-jsonschema
237+
rev: 0.27.3
238+
hooks:
239+
- id: check-woodpecker-ci
240+
241+
228242
.. generated-hook-list-end
229243
230244

docs/usage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ SchemaStore and other sources:
9999
- ``vendor.readthedocs``
100100
- ``vendor.renovate``
101101
- ``vendor.travis``
102+
- ``vendor.woodpecker-ci``
102103

103104
.. vendored-schema-list-end
104105

0 commit comments

Comments
 (0)