Skip to main content

validation for pre-commit.ci configuration

Project description

build status pre-commit.ci status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pre_commit_ci_config-1.6.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pre_commit_ci_config-1.6.1-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page