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.4.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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0172101cf1671eb4486a67a2ef56d2396e3c89af75f5a42a6682e5a17c881f2f |
|
MD5 | b0b9a9859de8c9571a475fb3ad4972d5 |
|
BLAKE2b-256 | 47a6ad93e3be19412e0d9ba4d096ce8eae82082e401b3619d67fd98f58408993 |
Close
Hashes for pre_commit_ci_config-1.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a86068d0588d89154377f08f63e3d4e8a7c639ab3f30c32f0f76c41ce8addec |
|
MD5 | 26f82a2cf9462f6378fb03cc7164a02d |
|
BLAKE2b-256 | 2b00f8143d7a0776c1cebc5989cf442eddd9d58582cbf4f86db5b4bc5f5258b0 |