Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: python-jsonschema/check-jsonschema
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.32.0
Choose a base ref
...
head repository: python-jsonschema/check-jsonschema
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.32.1
Choose a head ref
  • 3 commits
  • 7 files changed
  • 2 contributors

Commits on Mar 26, 2025

  1. Use types_or for the check-meltano hook

    edgarrmondragon committed Mar 26, 2025
    Copy the full SHA
    365a32e View commit details
  2. Merge pull request #543 from edgarrmondragon/check-meltano-types_or

    Use `types_or` for the `check-meltano` hook
    sirosen authored Mar 26, 2025
    Copy the full SHA
    512fcad View commit details
  3. Bump version for release

    sirosen committed Mar 26, 2025
    Copy the full SHA
    b6230f5 View commit details
Showing with 36 additions and 30 deletions.
  1. +1 −1 .pre-commit-hooks.yaml
  2. +6 −0 CHANGELOG.rst
  3. +1 −1 README.md
  4. +2 −2 docs/optional_parsers.rst
  5. +24 −24 docs/precommit_usage.rst
  6. +1 −1 pyproject.toml
  7. +1 −1 src/check_jsonschema/catalog.py
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -177,7 +177,7 @@
meltano-manifest\.json|
meltano-manifest\..+\.json
)$
types: [json,yaml]
types_or: [json,yaml]

# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -10,6 +10,12 @@ Unreleased

.. vendor-insert-here
0.32.1
------

- Fix the ``check-meltano`` hook to use ``types_or``. Thanks
:user:`edgarrmondragon`! (:pr:`543`)

0.32.0
------

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ files.

```yaml
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-github-workflows
args: ["--verbose"]
4 changes: 2 additions & 2 deletions docs/optional_parsers.rst
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ For example,
.. code-block:: yaml
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-renovate
additional_dependencies: ['pyjson5']
@@ -45,7 +45,7 @@ For example,
.. code-block:: yaml
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-jsonschema
name: 'Check GitHub Workflows'
48 changes: 24 additions & 24 deletions docs/precommit_usage.rst
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ You must specify a schema using pre-commit ``args`` configuration.
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-jsonschema
files: ^data/.*\.json$
@@ -34,7 +34,7 @@ Validate JSON Schema files against their matching metaschema, as specified in th
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-metaschema
files: ^schemas/.*\.json$
@@ -52,7 +52,7 @@ Validate Azure Pipelines config against the schema provided by Microsoft
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-azure-pipelines
@@ -66,7 +66,7 @@ Validate Bamboo Specs against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-bamboo-spec
@@ -80,7 +80,7 @@ Validate Bitbucket Pipelines against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-bitbucket-pipelines
@@ -94,7 +94,7 @@ Validate Buildkite Pipelines against the schema provided by Buildkite
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-buildkite
@@ -108,7 +108,7 @@ Validate CircleCI config against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-circle-ci
@@ -122,7 +122,7 @@ Validate Google Cloud Build config against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-cloudbuild
@@ -136,7 +136,7 @@ Validate Docker Compose files against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-compose-spec
@@ -150,7 +150,7 @@ Validate Dependabot Config (v2) against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-dependabot
@@ -164,7 +164,7 @@ Validate Drone-CI Config against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-drone-ci
@@ -178,7 +178,7 @@ Validate GitHub Actions against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-github-actions
@@ -192,7 +192,7 @@ Validate GitHub Workflows against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-github-workflows
@@ -206,7 +206,7 @@ Validate GitLab CI config against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-gitlab-ci
@@ -220,7 +220,7 @@ Validate Meltano config against the schema provided by Meltano
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-meltano
@@ -234,7 +234,7 @@ Validate Mergify config against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-mergify
@@ -248,7 +248,7 @@ Validate ReadTheDocs config against the schema provided by ReadTheDocs
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-readthedocs
@@ -262,7 +262,7 @@ Validate Renovate config against the schema provided by Renovate (does not suppo
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-renovate
@@ -276,7 +276,7 @@ Validate snapcraft files against the schema provided by Canonical
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-snapcraft
@@ -290,7 +290,7 @@ Validate Taskfile config against the schema provided by Task
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-taskfile
@@ -304,7 +304,7 @@ Validate Travis Config against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-travis
@@ -318,7 +318,7 @@ Validate Woodpecker Config against the schema provided by SchemaStore
:caption: example config
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-woodpecker-ci
@@ -344,7 +344,7 @@ manually, you could do this:
.. code-block:: yaml
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-jsonschema
name: "Check GitHub Workflows"
@@ -363,7 +363,7 @@ To check with the builtin schema that a GitHub workflow sets
.. code-block:: yaml
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.0
rev: 0.32.1
hooks:
- id: check-jsonschema
name: "Check GitHub Workflows set timeout-minutes"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "check-jsonschema"
version = "0.32.0"
version = "0.32.1"
description = "A jsonschema CLI and pre-commit hook"
authors = [
{ name = "Stephen Rosen", email = "sirosen0@gmail.com" },
2 changes: 1 addition & 1 deletion src/check_jsonschema/catalog.py
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
r"meltano-manifest\.json",
r"meltano-manifest\..+\.json",
],
"types": ["json", "yaml"],
"types_or": ["json", "yaml"],
},
},
"mergify": {