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.2.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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10b7eedb611d57f0a34ba2d82b23d1f90447652b1a8edacb220140b114fb9855 |
|
MD5 | d913ef495945e8850888e2da6ef04945 |
|
BLAKE2b-256 | aa4a8a863a22bd7f95f084e578e5b9d809bd46553654a6546ce086e7067f7ef3 |
Close
Hashes for pre_commit_ci_config-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86c58e74e1f31dc19fd27f128c415f45c587744b9975d1d60003cdfed939cb68 |
|
MD5 | 55985bf55ed9e29ad35d4db66dfdb58a |
|
BLAKE2b-256 | 24559eea79ddb0750e83c7888c66cfb3dcee316c292a38e6994a0b448caa50c3 |