Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
14 changes: 14 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@
files: ^cloudbuild\.(yml|yaml|json)$
types_or: [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`
- id: check-codecov
name: Validate Codecov config
description: 'Validate Codecov config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.codecov
language: python
files: >
(?x)^(
^((\.github|dev)/)?\.?codecov\.ya?ml$
)$
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`
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Unreleased
.. vendor-insert-here

- Add GitHub issue form schema and pre-commit hook (:issue:`588`).
- Add Codecov config schema and pre-commit hook.

0.33.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 @@ -127,6 +127,20 @@ Validate Google Cloud Build config against the schema provided by SchemaStore
- id: check-cloudbuild


``check-codecov``
~~~~~~~~~~~~~~~~~

Validate Codecov config against the schema provided by SchemaStore

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

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.3
hooks:
- id: check-codecov


``check-compose-spec``
~~~~~~~~~~~~~~~~~~~~~~

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