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.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.6.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed65ff72907a1a0664387d7651a4d11a8ca8ed4316900e695d317f3060ff6680 |
|
MD5 | 5e8119f2d03196a04e4991be49487302 |
|
BLAKE2b-256 | 90ba0e9394c1262194819a5a1494dcf3098a7339965f4b1f619bf1bea7975450 |
Close
Hashes for pre_commit_ci_config-1.6.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f33e5cfa1a7f4d4a379f308a3a18103511fc616c8eef8ef025413ce5554888 |
|
MD5 | e871984d1fd9661113fd39074e15d14a |
|
BLAKE2b-256 | a72fb4f507aa9c7c9e461a5633822d4b7d439779884c74d24f0e10c70ef5d4de |