v0.5.1

j178/prekv0.5.1Sep 1, 2026by github-actions[bot]

AI Summary

This release introduces the `prek init` command for repository setup, supports Pixi and `cargo-binstall` for dependency management, and enhances diagnostics and hook reporting capabilities.

Key Highlights

  • Added `prek init` for repository setup
  • Support for Pixi for Conda environments
  • Support for `cargo-binstall` for Rust CLI dependencies
  • Added `--hide-status` flag for hook reports
  • Generated a prek manifest JSON schema

New Features

  • prek init command
  • Pixi support for Conda
  • cargo-binstall support
  • --hide-status flag
  • JSON schema generation

Full Release Notes

## Release Notes

Released on 2026-09-01.

### Enhancements

- Add `--hide-status <passed|failed|skipped>` for hook reports ([#2644](https://github.com/j178/prek/pull/2644))
- Add `prek init` for repository setup ([#2636](https://github.com/j178/prek/pull/2636))
- Apply hook `env` during environment creation ([#2650](https://github.com/j178/prek/pull/2650))
- Disable error snippets in `check-yaml` diagnostics ([#2664](https://github.com/j178/prek/pull/2664))
- Show hooks excluded by skip selectors ([#2645](https://github.com/j178/prek/pull/2645))
- Support Pixi for Conda environments ([#2667](https://github.com/j178/prek/pull/2667))
- Support `cargo-binstall` for Rust CLI dependencies ([#2658](https://github.com/j178/prek/pull/2658))
- Warn about unused keys in user settings ([#2665](https://github.com/j178/prek/pull/2665))

### Bug fixes

- Reject unsupported YAML tags in check-yaml ([#2656](https://github.com/j178/prek/pull/2656))

### Documentation

- Clarify local hook documentation ([#2640](https://github.com/j178/prek/pull/2640))
- Clarify pre-commit command compatibility ([#2635](https://github.com/j178/prek/pull/2635))
- Document automatic PR fixes with autofix.ci ([#2643](https://github.com/j178/prek/pull/2643))
- Document check-yaml unsafe support ([#2632](https://github.com/j178/prek/pull/2632))
- Improve setup and workflow documentation ([#2637](https://github.com/j178/prek/pull/2637))

### Other changes

- Drop low-usage release targets ([#2651](https://github.com/j178/prek/pull/2651))
- Generate a prek manifest JSON schema ([#2648](https://github.com/j178/prek/pull/2648))

### Contributors

- @j178

## Install prek 0.5.1

### Install prebuilt binaries via shell script

```sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.5.1/prek-installer.sh | sh
```

### Install prebuilt binaries via powershell script

```sh
powershell -ExecutionPolicy Bypass -c "irm https://github.com/j178/prek/releases/download/v0.5.1/prek-installer.ps1 | iex"
```

### Install prebuilt binaries via Homebrew

```sh
brew install prek
```

## Download prek 0.5.1

|  File  | Platform | Checksum |
|--------|----------|----------|
| [prek-aarch64-apple-darwin.tar.gz](https://github.com/j178/prek/releases/download/v0.5.1/prek-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/j178/prek/releases/download/v0.5.1/prek-aarch64-apple-darwin.tar.gz.sha256) |
| [prek-x86_64-apple-darwin.tar.gz](https://github.com/j178/prek/releases/download/v0.5.1/prek-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/j178/prek/releases/download/v0.5.1/prek-x86_64-apple-darwin.tar.gz.sha256) |
| [prek-aarch64-pc-windows-msvc.zip](https://github.com/j178/prek/releases/download/v0.5.1/prek-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/j178/prek/releases/download/v0.5.1/prek-aarch64-pc-windows-msvc.zip.sha256) |
| [prek-x86_64-pc-windows-msvc.zip](https://github.com/j178/prek/releases/download/v0.5.1/prek-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/j178/prek/releases/download/v0.5.1/prek-x86_64-pc-windows-msvc.zip.sha256) |
| [prek-aarch64-unknown-linux-gnu.tar.gz](https://github.com/j178/prek/releases/download/v0.5.1/prek-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/j178/prek/releases/download/v0.5.1/prek-aarch64-unknown-linux-gnu.tar.gz.sha256) |
| [prek-x86_64-unknown-linux-gnu.tar.gz](https://github.com/j178/prek/releases/download/v0.5.1/prek-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/j178/prek/releases/download/v0.5.1/prek-x86_64-unknown-linux-gnu.tar.gz.sha256) |
| [prek-aarch64-unknown-linux-musl.tar.gz](https://github.com/j178/prek/releases/download/v0.5.1/prek-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/j178/prek/releases/download/v0.5.1/prek-aarch64-unknown-linux-musl.tar.gz.sha256) |
| [prek-x86_64-unknown-linux-musl.tar.gz](https://github.com/j178/prek/releases/download/v0.5.1/prek-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/j178/prek/releases/download/v0.5.1/prek-x86_64-unknown-linux-musl.tar.gz.sha256) |

## Verifying GitHub Artifact Attestations

The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the [GitHub CLI](https://cli.github.com/manual/gh_attestation_verify):
```sh
gh attestation verify <file-path of downloaded artifact> --repo j178/prek
```

You can also download the attestation from [GitHub](https://github.com/j178/prek/attestations) and verify against that directly:
```sh
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>
```