Skip to content

Chore: Update pre-commit configuration - #114

Merged
tykeal merged 2 commits into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:chore/update-pre-commit-config
Jun 16, 2026
Merged

tykeal merged 2 commits into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:chore/update-pre-commit-config

Conversation

@ModeSevenIndustrialSolutions

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Updates the pre-commit configuration to the latest canonical version
used across the action repositories, and fixes an issue the stricter
hooks surface.

Pre-commit configuration

  • Refreshes frozen hook revisions, including:
    • ruff-pre-commit → v0.15.17
    • basedpyright-prek-mirror → 1.39.8
    • gha-workflow-linter → v1.1.1
    • check-jsonschema → 0.37.3
  • Adds the standard ci: block (skip gha-workflow-linter in the
    pre-commit.ci sandbox, plus signed-off autofix/autoupdate commit
    messages).
  • Adds the basedpyright, gha-workflow-linter, and check-jsonschema
    hooks (GitHub Actions/Workflows validation, timeout-minutes check, and
    ReadTheDocs config validation).

Required fix

  • Quotes the boolean default: values for the publish_disable,
    attestations, and no_checkout inputs in action.yaml. The
    check-github-actions schema requires string defaults; behaviour is
    unchanged since GitHub already coerces these to strings.

This supersedes the automated pre-commit.ci autoupdate PR.

Import the latest canonical pre-commit configuration. This refreshes
several frozen hook revisions (ruff, basedpyright, gha-workflow-linter,
check-jsonschema) and adds the standard CI skip and commit-message
settings used across the action repositories.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions requested review from a team and Copilot June 16, 2026 12:51
@github-actions github-actions Bot added the chore Code chores (dependency updates, etc) label Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates this repository’s .pre-commit-config.yaml to match the latest “canonical” action-repo baseline, refreshing pinned hook SHAs and expanding validation coverage (notably for GitHub Actions workflows and ReadTheDocs config), while also standardizing pre-commit.ci behavior and commit messages.

Changes:

  • Refreshes pinned hook revisions (e.g., ruff-pre-commit frozen to v0.15.17).
  • Adds a standard ci: block (skip gha-workflow-linter in pre-commit.ci sandbox; standardized signed-off autofix/autoupdate commit messages).
  • Adds new hooks: basedpyright, gha-workflow-linter, and check-jsonschema (including a timeout-minutes requirement check for workflows, plus RTD config validation).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .pre-commit-config.yaml Resolved
The check-github-actions schema requires input default values to be
strings. Quote the publish_disable, attestations, and no_checkout
defaults; behaviour is unchanged since GitHub coerces these values to
strings during comparison.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@tykeal
tykeal merged commit b368a72 into lfreleng-actions:main Jun 16, 2026
9 checks passed
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions deleted the chore/update-pre-commit-config branch June 17, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Code chores (dependency updates, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants