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.1.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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 521c8f5c8b8278c3251374bc3bba6c29930bcb9bc6f5beb2957e7d79626ced3a |
|
MD5 | eda66127c0bec8b2cdb903e4f27ebc92 |
|
BLAKE2b-256 | 9661a0b419a556da53a17a7abe34e5b13373988f53e5c59a8d110f67d7883ae5 |
Close
Hashes for pre_commit_ci_config-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 731c31ba8ede074f246d9713fc3d464a88f07a80a8dab1860f2ade133ea90ac6 |
|
MD5 | f6a7090d67478718579000b8de29215d |
|
BLAKE2b-256 | 449488fdea4c13ef74ec8b38684895cbbff83e7600d7d938e4e3f7909f43bd59 |