# pre-commit v4.0.0 — pre-commit v4.0.0 - Product: pre-commit (https://whatsnew.fyi/product/pre-commit) - Vendor: pre-commit - Date: 2024-10-05 - Version: v4.0.0 - Original notes: https://github.com/pre-commit/pre-commit/releases/tag/v4.0.0 - Permalink: https://whatsnew.fyi/product/pre-commit/releases/v4.0.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'. --- - **changed** — Improve `pre-commit migrate-config` to handle more yaml formats - **changed** — Handle `stages` deprecation in `pre-commit migrate-config` - **changed** — Upgrade `ruby-build` - **added** — Add "sensible regex" warnings to `repo: meta` - **added** — Add warnings for deprecated `stages` (`commit` -> `pre-commit`, `push` -> `pre-push`, `merge-commit` -> `pre-merge-commit`) - **removed** — Remove `language: python_venv` -- use `language: python` instead ###### Features - Improve `pre-commit migrate-config` to handle more yaml formats. - #3301 PR by @asottile. - Handle `stages` deprecation in `pre-commit migrate-config`. - #3302 PR by @asottile. - #2732 issue by @asottile. - Upgrade `ruby-build`. - #3199 PR by @ThisGuyCodes. - Add "sensible regex" warnings to `repo: meta`. - #3311 PR by @asottile. - Add warnings for deprecated `stages` (`commit` -> `pre-commit`, `push` -> `pre-push`, `merge-commit` -> `pre-merge-commit`). - #3312 PR by @asottile. - #3313 PR by @asottile. - #3315 PR by @asottile. - #2732 issue by @asottile. ###### Migrating - `language: python_venv` has been removed -- use `language: python` instead. - #3320 PR by @asottile. - #2734 issue by @asottile.