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

# pre-commit-hooks breaking changes

pre-commit-hooks 6.0.0 (August 9, 2025) is its newest release with breaking changes, 4 of them. The first: pre-commit-hooks 6.0.0 requires Python 3.9 or later. Every breaking API change we have recorded in pre-commit-hooks on PyPI: 8 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.0.0`, released August 9, 2025. [Source repository](https://github.com/pre-commit/pre-commit-hooks)

Its 6.0.0 release requires [Python 3.9](https://since.dev/calendar/python/3.9.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [5.0.0](#v-5-0-0) to [6.0.0](#v-6-0-0): 4 breaking changes in 1 version.

## pre-commit-hooks 6.0.0 breaking changes

pre-commit-hooks 6.0.0, released August 9, 2025: 4 breaking changes.

- **Removed**  

The package now requires Python 3.9 or later, so older Python versions can no longer run it. [github.com](https://github.com/pre-commit/pre-commit-hooks/releases/tag/v6.0.0)
- **Removed** `check-byte-order-marker`  

The hook is gone; migrate to fix-byte-order-marker. [github.com](https://github.com/pre-commit/pre-commit-hooks/releases/tag/v6.0.0)
- **Removed** `fix-encoding-pragma`  

The hook is gone; migrate to pyupgrade. [github.com](https://github.com/pre-commit/pre-commit-hooks/releases/tag/v6.0.0)
- **Behavior changed** `file-contents-sorter`  

The hook now fails if both --unique and --ignore-case are given, so remove one of the two options. [github.com](https://github.com/pre-commit/pre-commit-hooks/releases/tag/v6.0.0)

## pre-commit-hooks 5.0.0 breaking changes

pre-commit-hooks 5.0.0, released October 5, 2024: 4 breaking changes.

- **Behavior changed** `destroyed-symlinks`  

destroyed-symlinks now sets its stages to pre-commit, pre-push and manual, so it runs in those stages. [github.com](https://github.com/pre-commit/pre-commit-hooks/releases/tag/v5.0.0)
- **Behavior changed** `requirements-txt-fixer`  

requirements-txt-fixer also removes pkg_resources==... lines, which changes its output for existing requirements files. [github.com](https://github.com/pre-commit/pre-commit-hooks/releases/tag/v5.0.0)
- **Signature changed** `pre_commit_hooks.check_executables_have_shebangs.git_ls_files`  

Was def git_ls_files(paths: Sequence\[str\]) -> Generator\[GitLsFile, None, None\]; now def git_ls_files(paths: Sequence\[str\]) -> Generator\[GitLsFile\]. [pypi.org](https://pypi.org/project/pre-commit-hooks/5.0.0/)
- **Signature changed** `pre_commit_hooks.check_shebang_scripts_are_executable.git_ls_files`  

Was def git_ls_files(paths: Sequence\[str\]) -> Generator\[GitLsFile, None, None\]; now def git_ls_files(paths: Sequence\[str\]) -> Generator\[GitLsFile\]. [pypi.org](https://pypi.org/project/pre-commit-hooks/5.0.0/)

## Related packages

- [pre-commit](https://since.dev/packages/pypi/pre-commit.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.
