A pre-commit hook for validating files against jsonschemas.
Project description
check-jsonschema
A pre-commit hook for checking files against a JSONSchema. The schema may be specified as a local or remote (HTTP or HTTPS) file.
Remote files are automatically downloaded and cached if possible.
Example Usage: Validate GitHub Workflows with Schemastore
Add this hook to your pre-commit config:
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.1.1
hooks:
- id: check-workflows
name: "Lint GitHub Workflows"
language: python
files: ^\.github/workflows/.*\.yaml$
args: ["--schemafile", "https://json.schemastore.org/github-workflow"]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
check-jsonschema-0.1.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for check_jsonschema-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39c889ce56bc3a66275a31977cb1fe799258a51a3e415e4756f76b0752b32266 |
|
MD5 | d241a2c626fd28861e259f224b336a4d |
|
BLAKE2b-256 | 4b84a6fc9d31d60e00f567f67c39d35e779d855ebb568ec42f59d5ee8fcc0613 |