pre-commit breaking changes
Updated December 4, 2026
On this page
Latest version 4.7.0, released October 12, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 3.0.0 to 4.6.1: 64 breaking changes in 5 versions.
- From 2.0.0 to 4.6.1: 200 breaking changes in 6 versions.
pre-commit 4.6.1 breaking changes
- Removed
pre_commit.languages.node.rmtree
pre_commit.languages.node.rmtree was removed in pre-commit 4.6.1 pypi.org - 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
pre-commit 4.6.0 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 - 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
pre-commit 4.5.0 breaking changes
- Removed
pre_commit.error_handler.Store.delete_configs
Store.delete_configs was removed in pre-commit 4.5.0 pypi.org - Removed
pre_commit.error_handler.Store.delete_repo
Store.delete_repo was removed in pre-commit 4.5.0 pypi.org - Removed
pre_commit.error_handler.Store.select_all_configs
Store.select_all_configs was removed in pre-commit 4.5.0 pypi.org - Removed
pre_commit.error_handler.Store.select_all_repos
Store.select_all_repos was removed in pre-commit 4.5.0 pypi.org - Removed
pre_commit.languages.script
pre_commit.languages.script was removed in pre-commit 4.5.0 pypi.org - Removed
pre_commit.languages.system
pre_commit.languages.system was removed in pre-commit 4.5.0 pypi.org - Removed
pre_commit.store.Store.delete_configs
Store.delete_configs was removed in pre-commit 4.5.0 pypi.org - Removed
pre_commit.store.Store.delete_repo
Store.delete_repo was removed in pre-commit 4.5.0 pypi.org - Removed
pre_commit.store.Store.select_all_configs
Store.select_all_configs was removed in pre-commit 4.5.0 pypi.org - Removed
pre_commit.store.Store.select_all_repos
Store.select_all_repos was removed in pre-commit 4.5.0 pypi.org
And 1 more in this version. Sign up to see every change
pre-commit 4.4.0 breaking changes
- Removed
pre_commit.all_languages.script
pre_commit.all_languages.script was removed in pre-commit 4.4.0 pypi.org - Removed
pre_commit.all_languages.system
pre_commit.all_languages.system was removed in pre-commit 4.4.0 pypi.org
pre-commit 4.0.0 breaking changes
- Removed
language: python_venv
The python_venv language value has been removed. Set language to python instead. github.com - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
pre_commit.error_handler.error_handler
Was def error_handler() -> Generator[None, None, None]; now def error_handler() -> Generator[None]. pypi.org - 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 - 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
And 37 more in this version. Sign up to see every change
pre-commit 3.0.0 breaking changes
- Removed
The sha key no longer sets a hook revision; run pre-commit migrate-config to change it to rev. github.com - Removed
Python below 3.8 is no longer supported, so code running on those versions must upgrade Python. github.com - Removed
Config files written as a top-level list no longer work; run pre-commit migrate-config to update them. github.com - Removed
pre_commit.clientlib.add_color_option
pre_commit.clientlib.add_color_option was removed in pre-commit 3.0.0 pypi.org - Removed
pre_commit.clientlib.logging_handler
pre_commit.clientlib.logging_handler was removed in pre-commit 3.0.0 pypi.org - Removed
pre_commit.clientlib.MigrateShaToRev
pre_commit.clientlib.MigrateShaToRev was removed in pre-commit 3.0.0 pypi.org - 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 - Removed
pre_commit.clientlib.validate_config
pre_commit.clientlib.validate_config was removed in pre-commit 3.0.0 pypi.org - Removed
pre_commit.clientlib.validate_config_main
pre_commit.clientlib.validate_config_main was removed in pre-commit 3.0.0 pypi.org - Removed
pre_commit.clientlib.validate_manifest
pre_commit.clientlib.validate_manifest was removed in pre-commit 3.0.0 pypi.org
And 126 more in this version. Sign up to see every change
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
pre-commit 2.0.0 breaking changes
- Removed
pre-commit itself now requires Python 3.6 or later. Hooks written in python2 still run. github.com - 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
And 80 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.