Skip to content

Update prek schema to v0.4.13 - #6181

Merged
github-actions[bot] merged 1 commit into
SchemaStore:masterfrom
j178:master
Aug 10, 2026
Merged

Update prek schema to v0.4.13#6181
github-actions[bot] merged 1 commit into
SchemaStore:masterfrom
j178:master

Conversation

@j178

@j178 j178 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Update prek schema to v0.4.13

Copilot AI lite review requested due to automatic review settings August 10, 2026 08:28
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by @j178 - if they write a comment saying "LGTM" then it will be merged.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the prek.toml JSON Schema in SchemaStore to align with prek v0.4.13 by expanding supported language/hook identifiers and adjusting hook description text.

Changes:

  • Add mise as a supported language (including default_language_version and Language enum).
  • Add builtin hook IDs deny-filename-pattern and require-filename-pattern.
  • Simplify hook description field text (remove “For metadata only.”).
Suppressed comments (2)

src/schemas/json/prek.json:1007

  • The new builtin hook id deny-filename-pattern is added to the schema enum, but the prek positive test does not include a config using this value. Add/extend a test case in src/test/prek/prek.toml that references this builtin hook id so the new enum value is covered by schema validation.
        "check-xml",
        "check-yaml",
        "deny-filename-pattern",
        "deny-pattern",

src/schemas/json/prek.json:1019

  • The new builtin hook id require-filename-pattern is added to the schema enum, but there is no corresponding positive test exercising it. Please update/add a prek test case (e.g. in src/test/prek/prek.toml) that uses this builtin hook id to ensure the new enum value stays validated.
        "no-commit-to-branch",
        "pretty-format-json",
        "require-filename-pattern",
        "require-pattern",
        "requirements-txt-fixer",

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/schemas/json/prek.json
@j178

j178 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

LGTM

@github-actions
github-actions Bot merged commit 6ea1e71 into SchemaStore:master Aug 10, 2026
5 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Merging because @j178 is a code-owner of all the changes - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants