]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Require pre-commit v4.5.1
authorTom de Vries <tdevries@suse.de>
Tue, 3 Feb 2026 16:45:38 +0000 (17:45 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 3 Feb 2026 16:45:38 +0000 (17:45 +0100)
In December 2025, pre-commit v4.5.1 was released.  We currently require v3.2.0
(released in March 2023), or later.

It occurred to me that allowing such a large range of releases might lead to
developers experiencing different behaviors, perhaps running into bugs that
are already fixed in later releases.

Fix this by requiring the latest release, v4.5.1.

The drawback is that we now require a more recent python: v3.10.

[ In more detail, pre-commit requires:
- at v3.2.0, python 3.8
- since v3.6.0, python 3.9
- since v4.4.0, python 3.10. ]

Tested on x86_64-linux, python 3.13.11 by doing "pre-commit run --all-files".

Approved-By: Tom Tromey <tom@tromey.com>
.pre-commit-config.yaml

index 15270cda30c2fbe9958badca902baf8f97b293d6..9da588d4c4ed10d1b018bc8e8cd0b43eeeb8aea9 100644 (file)
@@ -37,7 +37,7 @@
 # See https://pre-commit.com for more information
 # See https://pre-commit.com/hooks.html for more hooks
 
-minimum_pre_commit_version: 3.2.0
+minimum_pre_commit_version: 4.5.1
 default_install_hook_types: [pre-commit, commit-msg]
 default_stages: [pre-commit]
 repos: