Skip to content

Commit a8e7ceb

Browse files
committed
Adding generate hooks files for vendor bitbucket pipelines.
1 parent 6ef6d5b commit a8e7ceb

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@
4040
files: ^bamboo-specs/.*\.(yml|yaml)$
4141
types: [yaml]
4242

43+
# this hook is autogenerated from a script
44+
# to modify this hook, update `src/check_jsonschema/catalog.py`
45+
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
46+
- id: check-bitbucket-pipelines
47+
name: Validate Bitbucket Pipelines
48+
description: 'Validate Bitbucket Pipelines against the schema provided by SchemaStore'
49+
entry: check-jsonschema --builtin-schema vendor.bitbucket-pipelines
50+
language: python
51+
files: bitbucket-pipelines\.(yml|yaml)$
52+
types: [yaml]
53+
4354
# this hook is autogenerated from a script
4455
# to modify this hook, update `src/check_jsonschema/catalog.py`
4556
# 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
@@ -71,6 +71,20 @@ Validate Bamboo Specs against the schema provided by SchemaStore
7171
- id: check-bamboo-spec
7272
7373
74+
``check-bitbucket-pipelines``
75+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76+
77+
Validate Bitbucket Pipelines against the schema provided by SchemaStore
78+
79+
.. code-block:: yaml
80+
:caption: example config
81+
82+
- repo: https://github.com/python-jsonschema/check-jsonschema
83+
rev: 0.23.2
84+
hooks:
85+
- id: check-bitbucket-pipelines
86+
87+
7488
``check-buildkite``
7589
~~~~~~~~~~~~~~~~~~~
7690

docs/usage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ SchemaStore and other sources:
7474
7575
- ``vendor.azure-pipelines``
7676
- ``vendor.bamboo-spec``
77+
- ``vendor.bitbucket-pipelines``
7778
- ``vendor.buildkite``
7879
- ``vendor.dependabot``
7980
- ``vendor.github-actions``

0 commit comments

Comments
 (0)