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.0
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.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for check_jsonschema-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9656edd0a21dc3f5fe02a1d4643e159372e7e2403193f3599753a0daa5370e5e |
|
MD5 | 6bcc939641aff1a7a6cb88bcfb75cddd |
|
BLAKE2b-256 | 1fafbdd08b89183bac8b685d550ca44b8f7cd32e450455e017213c13c492b38c |