Skip to content

ci: switch from pre-commit to prek - #72

Merged
nstarman merged 1 commit into
mainfrom
switch-to-prek
Sep 15, 2026
Merged

nstarman merged 1 commit into
mainfrom
switch-to-prek

Conversation

@nstarman

Copy link
Copy Markdown
Contributor

Summary

  • Switches from pre-commit to prek, a drop-in, Rust-based reimplementation that reads the same .pre-commit-config.yaml — no hook changes needed
  • Swaps the pre-commit dependency for prek wherever it's declared (nox lint group / dev group) and updates the nox precommit session (or CI action) to invoke prek instead
  • Regenerates uv.lock to match

This mirrors the same swap already merged in unxt#929, coordinax#881, jaxmore#26, quaxed#213, and quax-blocks#64.

Note: this repo's .pre-commit-config.yaml still has pre-commit.ci's ci: autoupdate block. Disabling the pre-commit.ci GitHub App integration itself is a setting on pre-commit.ci / the repo's installed-apps page, not something a code change can do — worth doing once this merges, to avoid running checks twice.

Test plan

  • uv lock resolves cleanly with prek replacing pre-commit
  • Verified prek run --all-files (and no-commit-to-branch specifically) locally against this org's existing .pre-commit-config.yaml format

🤖 Generated with Claude Code

prek is a drop-in, Rust-based reimplementation of pre-commit that reads
the same .pre-commit-config.yaml. Swaps the pre-commit dependency and
invocations (nox session / CI action) for prek.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-code-quality

Copy link
Copy Markdown

Code Coverage Overview

Languages: Python

Python / code-coverage-agent

The overall line coverage in commit 5c6f7fc in the switch-to-prek branch remains at 100%, unchanged from commit 7878258 in the main branch.

@nstarman nstarman added this to the v0.3.0 milestone Sep 15, 2026
@nstarman
nstarman merged commit e9b0b4f into main Sep 15, 2026
18 checks passed
@nstarman
nstarman deleted the switch-to-prek branch September 15, 2026 14:55
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.

1 participant