---
title: "pre-commit 4.6.1 Breaking Changes on PyPI | Since.dev"
description: "What each pre-commit release removed, renamed or changed: 282 breaking changes in 7 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pre-commit
last_updated: 2026-12-04
---

# pre-commit breaking changes

pre-commit 4.6.1 (July 21, 2026) is its newest release with breaking changes, 2 of them. The first: Removed pre_commit.languages.node.rmtree. Every breaking API change we have recorded in pre-commit on PyPI: 282 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.7.0`, released October 12, 2026. [Source repository](https://github.com/pre-commit/pre-commit)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [3.0.0](#v-3-0-0) to [4.6.1](#v-4-6-1): 64 breaking changes in 5 versions.
- From [2.0.0](#v-2-0-0) to [4.6.1](#v-4-6-1): 200 breaking changes in 6 versions.

## pre-commit 4.6.1 breaking changes

pre-commit 4.6.1, released July 21, 2026: 2 breaking changes.

- **Removed** `pre_commit.languages.node.rmtree`  

pre_commit.languages.node.rmtree was removed in pre-commit 4.6.1 [pypi.org](https://pypi.org/project/pre-commit/4.6.1/)
- **Behavior changed** `pre-commit autoupdate`  

pre-commit autoupdate now reports an error when the --repo value is mistyped. Scripts that relied on a mistyped --repo being silently accepted must pass the correct repository. [github.com](https://github.com/pre-commit/pre-commit/releases/tag/v4.6.1)

## pre-commit 4.6.0 breaking changes

pre-commit 4.6.0, released April 21, 2026: 2 breaking changes.

- **Signature changed** `pre_commit.commands.hook_impl.hook_impl`  

Was def hook_impl(store: Store, \*, config: str, color: bool, hook_type: str, hook_dir: str, skip_on_missing_config: bool, args: Sequence\[str\]) -> int; now def hook_impl(store: Store, \*, config: str, color: bool, hook_type: str, hook_dir... [pypi.org](https://pypi.org/project/pre-commit/4.6.0/)
- **Signature changed** `pre_commit.main.hook_impl`  

Was def hook_impl(store: Store, \*, config: str, color: bool, hook_type: str, hook_dir: str, skip_on_missing_config: bool, args: Sequence\[str\]) -> int; now def hook_impl(store: Store, \*, config: str, color: bool, hook_type: str, hook_dir... [pypi.org](https://pypi.org/project/pre-commit/4.6.0/)

## pre-commit 4.5.0 breaking changes

pre-commit 4.5.0, released November 22, 2025: 11 breaking changes.

- **Removed** `pre_commit.error_handler.Store.delete_configs`  

Store.delete_configs was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)
- **Removed** `pre_commit.error_handler.Store.delete_repo`  

Store.delete_repo was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)
- **Removed** `pre_commit.error_handler.Store.select_all_configs`  

Store.select_all_configs was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)
- **Removed** `pre_commit.error_handler.Store.select_all_repos`  

Store.select_all_repos was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)
- **Removed** `pre_commit.languages.script`  

pre_commit.languages.script was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)
- **Removed** `pre_commit.languages.system`  

pre_commit.languages.system was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)
- **Removed** `pre_commit.store.Store.delete_configs`  

Store.delete_configs was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)
- **Removed** `pre_commit.store.Store.delete_repo`  

Store.delete_repo was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)
- **Removed** `pre_commit.store.Store.select_all_configs`  

Store.select_all_configs was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)
- **Removed** `pre_commit.store.Store.select_all_repos`  

Store.select_all_repos was removed in pre-commit 4.5.0 [pypi.org](https://pypi.org/project/pre-commit/4.5.0/)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## pre-commit 4.4.0 breaking changes

pre-commit 4.4.0, released November 8, 2025: 2 breaking changes.

- **Removed** `pre_commit.all_languages.script`  

pre_commit.all_languages.script was removed in pre-commit 4.4.0 [pypi.org](https://pypi.org/project/pre-commit/4.4.0/)
- **Removed** `pre_commit.all_languages.system`  

pre_commit.all_languages.system was removed in pre-commit 4.4.0 [pypi.org](https://pypi.org/project/pre-commit/4.4.0/)

## pre-commit 4.0.0 breaking changes

pre-commit 4.0.0, released October 5, 2024: 47 breaking changes.

- **Removed** `language: python_venv`  

The python_venv language value has been removed. Set language to python instead. [github.com](https://github.com/pre-commit/pre-commit/releases/tag/v4.0.0)
- **Signature changed** `pre_commit.commands.hook_impl.envcontext`  

Was def envcontext(patch: PatchesT, \_env: MutableMapping\[str, str\] | None = None) -> Generator\[None, None, None\]; now def envcontext(patch: PatchesT, \_env: MutableMapping\[str, str\] | None = None) -> Generator\[None\]. [pypi.org](https://pypi.org/project/pre-commit/4.0.0/)
- **Signature changed** `pre_commit.commands.run.Classifier.by_types`  

Was def by_types(self, names: Iterable\[str\], types: Iterable\[str\], types_or: Iterable\[str\], exclude_types: Iterable\[str\]) -> Generator\[str, None, None\]; now def by_types(self, names: Iterable\[str\], types: Iterable\[str\], types_or... [pypi.org](https://pypi.org/project/pre-commit/4.0.0/)
- **Signature changed** `pre_commit.commands.run.Classifier.filenames_for_hook`  

Was def filenames_for_hook(self, hook: Hook) -> Generator\[str, None, None\]; now def filenames_for_hook(self, hook: Hook) -> Generator\[str\]. [pypi.org](https://pypi.org/project/pre-commit/4.0.0/)
- **Signature changed** `pre_commit.commands.run.filter_by_include_exclude`  

Was def filter_by_include_exclude(names: Iterable\[str\], include: str, exclude: str) -> Generator\[str, None, None\]; now def filter_by_include_exclude(names: Iterable\[str\], include: str, exclude: str) -> Generator\[str\]. [pypi.org](https://pypi.org/project/pre-commit/4.0.0/)
- **Signature changed** `pre_commit.commands.run.staged_files_only`  

Was def staged_files_only(patch_dir: str) -> Generator\[None, None, None\]; now def staged_files_only(patch_dir: str) -> Generator\[None\]. [pypi.org](https://pypi.org/project/pre-commit/4.0.0/)
- **Signature changed** `pre_commit.envcontext.envcontext`  

Was def envcontext(patch: PatchesT, \_env: MutableMapping\[str, str\] | None = None) -> Generator\[None, None, None\]; now def envcontext(patch: PatchesT, \_env: MutableMapping\[str, str\] | None = None) -> Generator\[None\]. [pypi.org](https://pypi.org/project/pre-commit/4.0.0/)
- **Signature changed** `pre_commit.error_handler.error_handler`  

Was def error_handler() -> Generator\[None, None, None\]; now def error_handler() -> Generator\[None\]. [pypi.org](https://pypi.org/project/pre-commit/4.0.0/)
- **Signature changed** `pre_commit.error_handler.Store.connect`  

Was def connect(self, db_path: str | None = None) -> Generator\[sqlite3.Connection, None, None\]; now def connect(self, db_path: str | None = None) -> Generator\[sqlite3.Connection\]. [pypi.org](https://pypi.org/project/pre-commit/4.0.0/)
- **Signature changed** `pre_commit.error_handler.Store.exclusive_lock`  

Was def exclusive_lock(self) -> Generator\[None, None, None\]; now def exclusive_lock(self) -> Generator\[None\]. [pypi.org](https://pypi.org/project/pre-commit/4.0.0/)

And 37 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## pre-commit 3.0.0 breaking changes

pre-commit 3.0.0, released January 24, 2023: 136 breaking changes.

- **Removed**  

The sha key no longer sets a hook revision; run pre-commit migrate-config to change it to rev. [github.com](https://github.com/pre-commit/pre-commit/releases/tag/v3.0.0)
- **Removed**  

Python below 3.8 is no longer supported, so code running on those versions must upgrade Python. [github.com](https://github.com/pre-commit/pre-commit/releases/tag/v3.0.0)
- **Removed**  

Config files written as a top-level list no longer work; run pre-commit migrate-config to update them. [github.com](https://github.com/pre-commit/pre-commit/releases/tag/v3.0.0)
- **Removed** `pre_commit.clientlib.add_color_option`  

pre_commit.clientlib.add_color_option was removed in pre-commit 3.0.0 [pypi.org](https://pypi.org/project/pre-commit/3.0.0/)
- **Removed** `pre_commit.clientlib.logging_handler`  

pre_commit.clientlib.logging_handler was removed in pre-commit 3.0.0 [pypi.org](https://pypi.org/project/pre-commit/3.0.0/)
- **Removed** `pre_commit.clientlib.MigrateShaToRev`  

pre_commit.clientlib.MigrateShaToRev was removed in pre-commit 3.0.0 [pypi.org](https://pypi.org/project/pre-commit/3.0.0/)
- **Removed** `pre_commit.clientlib.ordered_load_normalize_legacy_config`  

pre_commit.clientlib.ordered_load_normalize_legacy_config was removed in pre-commit 3.0.0 [pypi.org](https://pypi.org/project/pre-commit/3.0.0/)
- **Removed** `pre_commit.clientlib.validate_config`  

pre_commit.clientlib.validate_config was removed in pre-commit 3.0.0 [pypi.org](https://pypi.org/project/pre-commit/3.0.0/)
- **Removed** `pre_commit.clientlib.validate_config_main`  

pre_commit.clientlib.validate_config_main was removed in pre-commit 3.0.0 [pypi.org](https://pypi.org/project/pre-commit/3.0.0/)
- **Removed** `pre_commit.clientlib.validate_manifest`  

pre_commit.clientlib.validate_manifest was removed in pre-commit 3.0.0 [pypi.org](https://pypi.org/project/pre-commit/3.0.0/)

And 126 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Older versions

1 older version, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### pre-commit 2.0.0 breaking changes

pre-commit 2.0.0, released January 29, 2020: 82 breaking changes.

- **Removed**  

pre-commit itself now requires Python 3.6 or later. Hooks written in python2 still run. [github.com](https://github.com/pre-commit/pre-commit/releases/tag/v2.0.0)
- **Removed** `--tags-only`  

The --tags-only argument to pre-commit autoupdate was removed. It did nothing since 0.14.0, so drop it from commands. [github.com](https://github.com/pre-commit/pre-commit/releases/tag/v2.0.0)

And 80 more in this version.

## Related packages

- [pre-commit-hooks](https://since.dev/packages/pypi/pre-commit-hooks.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
