# pre-commit v4.6.0 — pre-commit v4.6.0 - Product: pre-commit (https://whatsnew.fyi/product/pre-commit) - Vendor: pre-commit - Date: 2026-04-21 - Version: v4.6.0 - Original notes: https://github.com/pre-commit/pre-commit/releases/tag/v4.6.0 - Permalink: https://whatsnew.fyi/product/pre-commit/releases/v4.6.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Allow `--hook-dir` to be missing in `pre-commit hook-impl` to enable easier usage with git 2.54+ git hooks - **fixed** — Make `--hook-type` required in `pre-commit hook-impl` ###### Features - `pre-commit hook-impl`: allow `--hook-dir` to be missing to enable easier usage with `git` 2.54+ git hooks. - #3662 PR by @asottile. ###### Fixes - `pre-commit hook-impl`: `--hook-type` is required. - #3661 PR by @asottile.