Skip to content

Commit 60b80f9

Browse files
authored
Merge pull request #541 from edgarrmondragon/meltano
Add Meltano schema and pre-commit hook
2 parents f7d9d71 + 3c34684 commit 60b80f9

File tree

10 files changed

+1369
-1
lines changed

10 files changed

+1369
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,22 @@
163163
files: ^.*\.gitlab-ci\.yml$
164164
types: [yaml]
165165

166+
# this hook is autogenerated from a script
167+
# to modify this hook, update `src/check_jsonschema/catalog.py`
168+
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
169+
- id: check-meltano
170+
name: Validate Meltano Config
171+
description: 'Validate Meltano config against the schema provided by Meltano'
172+
entry: check-jsonschema --builtin-schema vendor.meltano
173+
language: python
174+
files: >
175+
(?x)^(
176+
.*meltano\.yml|
177+
meltano-manifest\.json|
178+
meltano-manifest\..+\.json
179+
)$
180+
types: [json,yaml]
181+
166182
# this hook is autogenerated from a script
167183
# to modify this hook, update `src/check_jsonschema/catalog.py`
168184
# and run `make 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
@@ -10,6 +10,8 @@ Unreleased
1010

1111
.. vendor-insert-here
1212
13+
- Add Meltano schema and pre-commit hook (:issue:`540`).
14+
1315
0.31.3
1416
------
1517

docs/precommit_usage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,20 @@ Validate GitLab CI config against the schema provided by SchemaStore
211211
- id: check-gitlab-ci
212212
213213
214+
``check-meltano``
215+
~~~~~~~~~~~~~~~~~
216+
217+
Validate Meltano config against the schema provided by Meltano
218+
219+
.. code-block:: yaml
220+
:caption: example config
221+
222+
- repo: https://github.com/python-jsonschema/check-jsonschema
223+
rev: 0.31.3
224+
hooks:
225+
- id: check-meltano
226+
227+
214228
``check-mergify``
215229
~~~~~~~~~~~~~~~~~
216230

docs/usage.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ SchemaStore and other sources:
9898
- ``vendor.github-actions``
9999
- ``vendor.github-workflows``
100100
- ``vendor.gitlab-ci``
101+
- ``vendor.meltano``
101102
- ``vendor.mergify``
102103
- ``vendor.readthedocs``
103104
- ``vendor.renovate``
@@ -185,7 +186,7 @@ Example usage:
185186
--disable-formats time,date-time --disable-formats iri
186187
187188
``--regex-variant``
188-
~~~~~~~~~~~~~~~~~~
189+
~~~~~~~~~~~~~~~~~~~
189190

190191
Set a mode for handling of the ``"regex"`` value for ``"format"`` and the mode
191192
for ``"pattern"`` and ``"patternProperties"`` interpretation.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright Arch Data, Inc.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)