Skip to content

Commit 2a56caf

Browse files
authored
Merge pull request #662 from edgarrmondragon/changie
feat: Add Changie schema and pre-commit hook
2 parents 9e5cd69 + 074f887 commit 2a56caf

9 files changed

Lines changed: 498 additions & 0 deletions

File tree

.pre-commit-hooks.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@
6868
)$
6969
types_or: [json,yaml]
7070

71+
# this hook is autogenerated from a script
72+
# to modify this hook, update `src/check_jsonschema/catalog.py`
73+
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
74+
- id: check-changie
75+
name: Validate Changie config
76+
description: 'Validate Changie configuration'
77+
entry: check-jsonschema --builtin-schema vendor.changie
78+
language: python
79+
files: ^\.changie\.(yml|yaml)$
80+
types: [yaml]
81+
7182
# this hook is autogenerated from a script
7283
# to modify this hook, update `src/check_jsonschema/catalog.py`
7384
# and run `just generate-hooks` or `tox run -e generate-hooks-config`

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ CHANGELOG
88
Unreleased
99
----------
1010

11+
- Add Changie.dev schema and pre-commit hook. Thanks :user:`edgarrmondragon`! (:pr:`662`)
12+
1113
.. vendor-insert-here
1214
1315
0.37.0

docs/precommit_usage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@ Validate Buildkite Pipelines against the schema provided by Buildkite
9999
- id: check-buildkite
100100
101101
102+
``check-changie``
103+
~~~~~~~~~~~~~~~~~
104+
105+
Validate Changie configuration
106+
107+
.. code-block:: yaml
108+
:caption: example config
109+
110+
- repo: https://github.com/python-jsonschema/check-jsonschema
111+
rev: 0.37.0
112+
hooks:
113+
- id: check-changie
114+
115+
102116
``check-circle-ci``
103117
~~~~~~~~~~~~~~~~~~~
104118

docs/usage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ SchemaStore and other sources:
9090
- ``vendor.bamboo-spec``
9191
- ``vendor.bitbucket-pipelines``
9292
- ``vendor.buildkite``
93+
- ``vendor.changie``
9394
- ``vendor.circle-ci``
9495
- ``vendor.citation-file-format``
9596
- ``vendor.cloudbuild``

0 commit comments

Comments
 (0)