Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / .pre-commit-config.yml
Schema registry

.pre-commit-config.yml

pre-commit configuration file

.pre-commit-config.yml.pre-commit-config.yaml

Check your file against this schema

Opens the validator with this schema already loaded. Paste your .pre-commit-config.yml and it validates in your browser — nothing is uploaded.

Validate a .pre-commit-config.yml → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
ciobjectpre-commit.ci specific settings https://pre-commit.ci/#configuration
ci.autofix_commit_msgstringA commit message for pull request autofixes https://pre-commit.ci/#configuration
default: "[pre-commit.ci] auto fixes from pre-commit.com…
ci.autofix_prsbooleanWhether to autofix pull requests https://pre-commit.ci/#configuration
default: true
ci.autoupdate_branchstringA branch to send pull request's autoupdate to https://pre-commit.ci/#configuration
default: ""
ci.autoupdate_commit_msgstringA commit message for autoupdate pull requests https://pre-commit.ci/#configuration
default: "[pre-commit.ci] pre-commit autoupdate"
ci.autoupdate_schedulestringAn autoupdate frequency https://pre-commit.ci/#configuration
default: "weekly"
one of: "weekly", "monthly", "quarterly"
ci.skiparray<string>List of skipped hook's ids https://pre-commit.ci/#configuration
ci.submodulesbooleanWhether to recursively check out submodules https://pre-commit.ci/#configuration
default: false
reposrequiredarrayRepository mappings of the current project https://pre-commit.com/#pre-commit-configyaml---top-level
default_install_hook_typesarrayA list of hook types which will be used by default when running `pre-commit install` https://pre-commit.com/#pre-commit-configyaml---top-level
default: ["pre-commit"]
default_language_versionobjectMappings for the default language versions of the current project https://pre-commit.com/#pre-commit-configyaml---top-level
default_stagesanyThe default stages of the current project https://pre-commit.com/#pre-commit-configyaml---top-level
filesstringA file include pattern of the current project https://pre-commit.com/#pre-commit-configyaml---top-level
default: ""
excludestringA file exclude pattern of the current project https://pre-commit.com/#pre-commit-configyaml---top-level
default: "^$"
fail_fastbooleanWhether stop running hooks after a first failure https://pre-commit.com/#pre-commit-configyaml---top-level
default: false
minimum_pre_commit_versionstringA minimum version of pre-commit https://pre-commit.com/#pre-commit-configyaml---top-level
default: "0"

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$refJSON Schema Core, draft 2020-12§8.2.3.1 — Direct References with "$ref"
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
patternJSON Schema Validation, draft 2020-12§6.3.3 — "pattern"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
requiredJSON Schema Validation, draft 2020-12§6.5.3 — "required"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas