Skip to content

Commit

Permalink
Merge pull request #372 from kurtmckee/check-json-schema
Browse files Browse the repository at this point in the history
Use check-jsonschema to validate the schema of config files
  • Loading branch information
kurtmckee committed Jun 6, 2023
2 parents e767f2e + e72d0d7 commit d2d0008
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ repos:
- id: pyupgrade
name: "Enforce Python 3.8 idioms"
args: [--py38-plus]

- repo: "https://github.com/python-jsonschema/check-jsonschema"
rev: "0.23.1"
hooks:
- id: "check-dependabot"
- id: "check-github-workflows"
- id: "check-readthedocs"
7 changes: 7 additions & 0 deletions changelog.d/20230605_203701_kurtmckee_check_json_schema.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Project development
-------------------

* Add a pre-commit hook to validate the schema of various configuration files,
including the Dependabot, GitHub workflows, and ReadTheDocs configuration files.

This uses the `check-jsonschema <https://github.com/python-jsonschema/check-jsonschema>`_ pre-commit hook.

0 comments on commit d2d0008

Please sign in to comment.