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.6.0
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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d3474b3cb17fb9f6ab2fae3d0328ff8b1f7e66b1701931b8be823c4955d8e7 |
|
MD5 | 6082d7ab55d14e75697ddb4c317972bb |
|
BLAKE2b-256 | fc3e3c90b28d1d44a564aae6a3dfa670182ab06da6913ee282e6c9ca42470165 |
Close
Hashes for pre_commit_ci_config-1.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bb113ef778a1db164884f5dfbb5ca52ae0906e6d18df37bea859c0e8ffbd11c |
|
MD5 | 31f394d7ee41250926acbdd18af960db |
|
BLAKE2b-256 | 10d3b3fdcdb669f2574828a6878a61f1d9df3e2941976b104b72f01bbf90f3d2 |