Skip to content

Commit bc4345f

Browse files
authored
Merge pull request #616 from edgarrmondragon/citation.cff
Add `CITATION.cff` schema and pre-commit hook
2 parents c4a6418 + 0d26bce commit bc4345f

File tree

11 files changed

+2336
-0
lines changed

11 files changed

+2336
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@
7878
language: python
7979
files: ^\.circleci/config\.(yml|yaml)$
8080

81+
# this hook is autogenerated from a script
82+
# to modify this hook, update `src/check_jsonschema/catalog.py`
83+
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
84+
- id: check-citation-file-format
85+
name: Validate Citation File Format
86+
description: 'Validate Citation File Format'
87+
entry: check-jsonschema --builtin-schema vendor.citation-file-format
88+
language: python
89+
files: ^CITATION.cff$
90+
8191
# this hook is autogenerated from a script
8292
# to modify this hook, update `src/check_jsonschema/catalog.py`
8393
# 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
@@ -8,6 +8,8 @@ CHANGELOG
88
Unreleased
99
----------
1010

11+
- Add Citation File Format schema and pre-commit hook. Thanks :user:`edgarrmondragon`! (:issue:`502`)
12+
1113
.. vendor-insert-here
1214
1315
- Update vendored schemas: circle-ci, compose-spec, dependabot, meltano, mergify,

docs/precommit_usage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@ Validate CircleCI config against the schema provided by SchemaStore
113113
- id: check-circle-ci
114114
115115
116+
``check-citation-file-format``
117+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
118+
119+
Validate Citation File Format
120+
121+
.. code-block:: yaml
122+
:caption: example config
123+
124+
- repo: https://github.com/python-jsonschema/check-jsonschema
125+
rev: 0.34.1
126+
hooks:
127+
- id: check-citation-file-format
128+
129+
116130
``check-cloudbuild``
117131
~~~~~~~~~~~~~~~~~~~~
118132

docs/usage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ SchemaStore and other sources:
9191
- ``vendor.bitbucket-pipelines``
9292
- ``vendor.buildkite``
9393
- ``vendor.circle-ci``
94+
- ``vendor.citation-file-format``
9495
- ``vendor.cloudbuild``
9596
- ``vendor.codecov``
9697
- ``vendor.compose-spec``

0 commit comments

Comments
 (0)