Skip to content

Conversation

aviv-julienjehannet
Copy link
Contributor

@aviv-julienjehannet aviv-julienjehannet commented Sep 27, 2025

pre-commit is a framework to run hooks written in many languages, and it manages the language toolchain and dependencies for running the hooks.

prek is a reimagined version of pre-commit, built in Rust. It is designed to be a faster, dependency-free and drop-in alternative for it, while also providing some additional long-requested features.

Closes #7213

  • Use conventional PR title: <manifest-name[@version]|chore>: <general summary of the pull request>
  • I have read the Contributing Guide

Summary by CodeRabbit

  • New Features
    • Added a new package entry for “prek” (v0.2.2) to the catalog.
    • Supports Windows x64, x86, and ARM64 downloads.
    • Enables automatic update checks with per-architecture update sources.
    • Provides secure installs via SHA256 verification.
    • Includes key metadata (version, description, homepage, license) and exposes the binary for command-line use.

Copy link

coderabbitai bot commented Sep 27, 2025

Walkthrough

Added a new Scoop manifest bucket/prek.json for prek v0.2.2 containing metadata, per-architecture download entries (64bit, 32bit, arm64) with URLs and SHA256 hashes, binary name, GitHub-based checkver, and autoupdate templates including shared hash mapping.

Changes

Cohort / File(s) Summary
New Scoop manifest
bucket/prek.json
Adds manifest for prek v0.2.2 with metadata (version, description, homepage, license, notes), binary name, per-arch download URLs and SHA256 hashes (64bit/32bit/arm64), checkver using GitHub releases, and autoupdate templates including architecture-specific URL patterns and a shared hash URL mapping.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A rabbit taps the bucket, quick and sleek,
New JSON carrots for the tool named "prek."
Three arches balanced, hashes neat,
Checkver hums, autoupdate fleet.
Hop—version lands, installation complete. 🥕✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description provides background on the prek tool but does not summarize the actual changes introduced—namely adding the bucket/prek.json manifest for version 0.2.2 with architecture-specific download entries and update logic as required by the template. It correctly includes the issue closure and checklist items but fails to describe the file additions and metadata changes in the general summary section. The author should update the summary to clearly outline the manifest addition and version bump according to the repository template. Update the general summary section to explicitly describe the addition of bucket/prek.json for version 0.2.2, including metadata fields, per-architecture download URLs, checksums, and autoupdate logic as specified by the template.
✅ Passed checks (4 passed)
Check name Status Explanation
Title Check ✅ Passed The title clearly describes the main change—adding version 0.2.2—follows the conventional PR title format, and references the related issue, ensuring clarity for maintainers.
Linked Issues Check ✅ Passed The new bucket/prek.json manifest defines the package name, version 0.2.2, description, homepage, license, and architecture-specific download URLs with SHA256 hashes, and includes checkver and autoupdate logic. These entries satisfy the linked issue’s requirements for a standard installation of the latest stable version of a non-GUI tool with English documentation and release downloads. The PR also closes #7213 and provides the requested metadata and resources.
Out of Scope Changes Check ✅ Passed The PR only adds the bucket/prek.json file implementing the requested manifest for version 0.2.2 and does not modify any other files. All changes directly relate to the objectives in issue #7213 for adding the prek package. There are no unrelated or extraneous modifications.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8cb5b0c and 7bd18e9.

📒 Files selected for processing (1)
  • bucket/prek.json (1 hunks)
🔇 Additional comments (1)
bucket/prek.json (1)

19-22: ARM64 download now targets the Windows build.

Thanks for switching this entry to the Windows ARM64 asset; this resolves the install mismatch flagged earlier.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

All changes look good.

Wait for review from human collaborators.

prek

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4cb7d1c and 8cb5b0c.

📒 Files selected for processing (1)
  • bucket/prek.json (1 hunks)

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

Successfully merging this pull request may close these issues.

[Request]: prek
1 participant