Skip to content
Open
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
10 changes: 10 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@
language: python
files: ^\.circleci/config\.(yml|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-citation-file-format
name: Validate Citation File Format
description: 'Validate Citation File Format'
entry: check-jsonschema --builtin-schema vendor.citation-file-format
language: python
files: ^CITATION.cff$

# 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 @@ -8,6 +8,8 @@ CHANGELOG
Unreleased
----------

- Add Citation File Format schema and pre-commit hook. Thanks :user:`edgarrmondragon`! (:issue:`502`)

.. vendor-insert-here

- Update vendored schemas: circle-ci, compose-spec, dependabot, meltano, mergify,
Expand Down
14 changes: 14 additions & 0 deletions docs/precommit_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@ Validate CircleCI config against the schema provided by SchemaStore
- id: check-circle-ci


``check-citation-file-format``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Validate Citation File Format

.. code-block:: yaml
:caption: example config

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.34.1
hooks:
- id: check-citation-file-format


``check-cloudbuild``
~~~~~~~~~~~~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ SchemaStore and other sources:
- ``vendor.bitbucket-pipelines``
- ``vendor.buildkite``
- ``vendor.circle-ci``
- ``vendor.citation-file-format``
- ``vendor.cloudbuild``
- ``vendor.codecov``
- ``vendor.compose-spec``
Expand Down
Loading
Loading