Skip to content

Commit e75ba21

Browse files
authored
Merge pull request #598 from vivodi/codecov
feat(pre-commit): add Codecov config schema and pre-commit hook
2 parents c8cc508 + cf898d3 commit e75ba21

File tree

10 files changed

+731
-1
lines changed

10 files changed

+731
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,20 @@
8989
files: ^cloudbuild\.(yml|yaml|json)$
9090
types_or: [json,yaml]
9191

92+
# this hook is autogenerated from a script
93+
# to modify this hook, update `src/check_jsonschema/catalog.py`
94+
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
95+
- id: check-codecov
96+
name: Validate Codecov config
97+
description: 'Validate Codecov config against the schema provided by SchemaStore'
98+
entry: check-jsonschema --builtin-schema vendor.codecov
99+
language: python
100+
files: >
101+
(?x)^(
102+
^((\.github|dev)/)?\.?codecov\.ya?ml$
103+
)$
104+
types: [yaml]
105+
92106
# this hook is autogenerated from a script
93107
# to modify this hook, update `src/check_jsonschema/catalog.py`
94108
# and run `make generate-hooks` or `tox run -e generate-hooks-config`

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ Unreleased
99
----------
1010

1111
.. vendor-insert-here
12-
1312
- Update vendored schemas: bitbucket-pipelines, buildkite, compose-spec, dependabot,
1413
drone-ci, github-issue-forms, gitlab-ci, meltano, mergify, renovate, snapcraft,
1514
woodpecker-ci (2025-09-17)
1615
- Add GitHub issue config schema and pre-commit hook. Thanks :user:`vivodi`! (:issue:`589`).
1716
- Add GitHub issue form schema and pre-commit hook. Thanks :user:`vivodi`! (:issue:`588`).
17+
- Add Codecov config schema and pre-commit hook. Thanks :user:`vivodi`! (:pr:`598`)
1818

1919
0.33.3
2020
------

docs/precommit_usage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,20 @@ Validate Google Cloud Build config against the schema provided by SchemaStore
127127
- id: check-cloudbuild
128128
129129
130+
``check-codecov``
131+
~~~~~~~~~~~~~~~~~
132+
133+
Validate Codecov config against the schema provided by SchemaStore
134+
135+
.. code-block:: yaml
136+
:caption: example config
137+
138+
- repo: https://github.com/python-jsonschema/check-jsonschema
139+
rev: 0.33.3
140+
hooks:
141+
- id: check-codecov
142+
143+
130144
``check-compose-spec``
131145
~~~~~~~~~~~~~~~~~~~~~~
132146

docs/usage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ SchemaStore and other sources:
9292
- ``vendor.buildkite``
9393
- ``vendor.circle-ci``
9494
- ``vendor.cloudbuild``
95+
- ``vendor.codecov``
9596
- ``vendor.compose-spec``
9697
- ``vendor.dependabot``
9798
- ``vendor.drone-ci``

0 commit comments

Comments
 (0)