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 / prek
Schema registry

prek

Configuration file for prek, a tool for managing git hooks

prek.toml

Check your file against this schema

Opens the validator with this schema already loaded. Paste your prek.toml and it validates in your browser — nothing is uploaded.

Validate a prek.toml → View raw schema

Fields

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

Field Type Description
updateobjectControls how `prek update` selects eligible releases.
update.cooldown_daysinteger
update.freezeboolean
update.include_tagsanyOfA configuration value that accepts either one string or a list of strings.
update.exclude_tagsanyOfA configuration value that accepts either one string or a list of strings.
update.reposobject
prioritiesobjectConfiguration-local aliases for numeric hook priorities.
reposrequiredarray
default_install_hook_typesarrayA list of `--hook-types` which will be used by default when running `prek install`. Default is `[pre-commit]`.
default_language_versionobjectA mapping from language to the default `language_version`.
default_language_version.bunanyOf
default_language_version.condaanyOf
default_language_version.coursieranyOf
default_language_version.dartanyOf
default_language_version.denoanyOf
default_language_version.dockeranyOf
default_language_version.docker_imageanyOf
default_language_version.dotnetanyOf
default_language_version.failanyOf
default_language_version.golanganyOf
default_language_version.haskellanyOf
default_language_version.juliaanyOf
default_language_version.luaanyOf
default_language_version.miseanyOf
default_language_version.nodeanyOf
default_language_version.perlanyOf
default_language_version.phpanyOf
default_language_version.pygrepanyOf
default_language_version.pythonanyOf
default_language_version.ranyOf
default_language_version.rubyanyOf
default_language_version.rustanyOf
default_language_version.scriptanyOf
default_language_version.swiftanyOf
default_language_version.systemanyOf
default_stagesarrayA configuration-wide default for the stages property of hooks. Default to all stages.
default_envobjectDefault runtime environment variables for hooks.
filesoneOfA file pattern, either a regex or glob pattern(s).
excludeoneOfA file pattern, either a regex or glob pattern(s).
fail_fastbooleanSet to true to have prek stop running hooks after the first failure. Default is false.
minimum_prek_versionstringThe minimum version of prek required to run this configuration.
orphanbooleanSet to true to isolate this project from parent configurations in workspace mode. When true, files in this project are "consumed" by this project and will not be processed by parent projects. When false (default), files in subprojects are

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$refJSON Schema Core, draft 2020-12§8.2.3.1 — Direct References with "$ref"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
constJSON Schema Validation, draft 2020-12§6.1.3 — "const"
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"
oneOfJSON Schema Core, draft 2020-12§10.2.1.3 — "oneOf"
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"
uniqueItemsJSON Schema Validation, draft 2020-12§6.4.3 — "uniqueItems"

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