validation for pre-commit.ci configuration
Project description
pre-commit-ci-config
validation for pre-commit.ci configuration
installation
pip install pre-commit-ci-config
api
pre_commit_ci_config.SCHEMA
a cfgv schema.
the expected input to this schema is the loaded top-level pre-commit configuration.
>>> import cfgv
>>> from pre_commit.clientlib import load_config
>>> from pre_commit_ci_config import SCHEMA
>>> cfg = load_config('.pre-commit-config.yaml')
>>> cfg = cfgv.validate(cfg, SCHEMA)
>>> cfg = cfgv.apply_defaults(cfg, SCHEMA)
check-pre-commit-ci-config
a commandline tool to validate the configuration
$ check-pre-commit-ci-config .pre-commit-config.yaml
$
as a pre-commit hook
See pre-commit for instructions
Sample .pre-commit-config.yaml
:
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.5.1
hooks:
- id: check-pre-commit-ci-config
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
Close
Hashes for pre_commit_ci_config-1.5.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e957027495d43b23bf2458900532fa71f4abcd77d0288841a4955592e130cb3 |
|
MD5 | 81a795e8eb67fb47c04f05ccddb25e32 |
|
BLAKE2b-256 | f6d292dce520e4c171989f4a92b9bcff55ae678b6469bfa8dd2f87da122d82e5 |
Close
Hashes for pre_commit_ci_config-1.5.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c41c4fd036780db509637447042ed5a3cb6bcc0de76eb9c396b68d5e622f698e |
|
MD5 | f05995afcc0db71a11f25849655bc09e |
|
BLAKE2b-256 | c0bf5211648a62f749dbc87eb21147734a36f8cd8a3c734202b57ba0d1464aed |