Skip to content

chore: update pre-commit hook releases - #22

Merged
mjun0812 merged 1 commit into
mainfrom
chore/update-pre-commit-hooks
Sep 3, 2026
Merged

chore: update pre-commit hook releases#22
mjun0812 merged 1 commit into
mainfrom
chore/update-pre-commit-hooks

Conversation

@mjun0812

Copy link
Copy Markdown
Owner

Overview and Background

Update the generated project's pre-commit hooks to the latest stable releases available on 2026-09-03. The previous configuration used uv-pre-commit 0.8.22 and ruff-pre-commit v0.13.2, leaving hook behavior behind current stable releases.

Related Issues

None.

Implementation Approach

Update only the existing rev values in template/.pre-commit-config.yaml, preserving the current hook set and arguments. The versions were selected from the official GitHub release lists using gh api, excluding prereleases and drafts.

Changes

  • Set uv-pre-commit to 0.12.9.
  • Set ruff-pre-commit to v0.16.5.

Impact

Generated projects will use newer uv lock and Ruff pre-commit environments. No additional hooks, configuration, runtime behavior, or compatibility layers are introduced.

Validation Results

  • uvx copier copy . /tmp/python-copier-precommit-generated --defaults -d project_name=test-copier -d package_name=test_copier -d description='Test project' -d author_name=test-copier -d author_email=test-copier@example.com --trust: passed.
  • uv run pre-commit run --all-files: passed (uv-lock, ruff check, and ruff format).
  • uv run ruff format --check --diff .: passed.
  • uv run --frozen pytest -vs: passed (2 tests).
  • uv run ruff check --output-format=github .: reports existing rule-codes-in-selectors configuration diagnostics in the generated pyproject.toml; that file is outside this change.

- Upgrade uv-pre-commit to the latest stable 0.12.9 release
- Upgrade ruff-pre-commit to the latest stable v0.16.5 release
@mjun0812mjun0812 self-assigned this Sep 2, 2026

@mjun0812mjun0812 left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

Codex PR Review

Summary

This pull request updates the generated project's uv and Ruff pre-commit hook revisions while preserving the existing hook configuration. No blocking findings were confirmed. The Contract axis was skipped because no spec source was available.

Verdict

APPROVE

Findings

N/A


Reviewed by Codex at f7fc4fa

@mjun0812
mjun0812 merged commit ecb76d5 into mainSep 3, 2026
6 checks passed
Sign up for freeto 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.

1 participant

@mjun0812