Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,22 @@
files: ^.*\.gitlab-ci\.yml$
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-meltano
name: Validate Meltano Config
description: 'Validate Meltano config against the schema provided by Meltano'
entry: check-jsonschema --builtin-schema vendor.meltano
language: python
files: >
(?x)^(
.*meltano\.yml|
meltano-manifest\.json|
meltano-manifest\..+\.json
)$
types: [json,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`
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Unreleased

.. vendor-insert-here

- Add Meltano schema and pre-commit hook (:issue:`540`).

0.31.3
------

Expand Down
14 changes: 14 additions & 0 deletions docs/precommit_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,20 @@ Validate GitLab CI config against the schema provided by SchemaStore
- id: check-gitlab-ci
``check-meltano``
~~~~~~~~~~~~~~~~~

Validate Meltano config against the schema provided by Meltano

.. code-block:: yaml
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.3
hooks:
- id: check-meltano
``check-mergify``
~~~~~~~~~~~~~~~~~

Expand Down
3 changes: 2 additions & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ SchemaStore and other sources:
- ``vendor.github-actions``
- ``vendor.github-workflows``
- ``vendor.gitlab-ci``
- ``vendor.meltano``
- ``vendor.mergify``
- ``vendor.readthedocs``
- ``vendor.renovate``
Expand Down Expand Up @@ -185,7 +186,7 @@ Example usage:
--disable-formats time,date-time --disable-formats iri
``--regex-variant``
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch; thanks!


Set a mode for handling of the ``"regex"`` value for ``"format"`` and the mode
for ``"pattern"`` and ``"patternProperties"`` interpretation.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright Arch Data, Inc.

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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.
Loading
Loading