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
Built Distribution
File details
Details for the file check-jsonschema-0.1.0.tar.gz
.
File metadata
- Download URL: check-jsonschema-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7df951306549f11d20625eea4c15fcdfb08ca15a31ba06fa040e04b4cc22faf |
|
MD5 | 1da66dd66baf7a7c3a75cc3b3ad603ab |
|
BLAKE2b-256 | 6ab10bd9cb576d7953ad6363606fbc95a18439d11a140a51b4736fdd0053bf7d |
Provenance
File details
Details for the file check_jsonschema-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: check_jsonschema-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9656edd0a21dc3f5fe02a1d4643e159372e7e2403193f3599753a0daa5370e5e |
|
MD5 | 6bcc939641aff1a7a6cb88bcfb75cddd |
|
BLAKE2b-256 | 1fafbdd08b89183bac8b685d550ca44b8f7cd32e450455e017213c13c492b38c |