Skip to content

Commit 048dae0

Browse files
committed
Rollback to pre-commit version v5!
I fixed the issues after upgrading to version V > 5.0.0 when I realised that Capsul wanted to continue supporting Python 3.6... I'm going back :-). However, I'm not sure I understand correctly, because it seems to me that: - pre-commit v3.x was the last major version series to officially support Python 3.6. - pre-commit v4.0.0 and later dropped support for Python 3.6, requiring Python 3.7 or newer. - pre-commit v5.x (the latest as of 2025) does not support Python 3.6. In any case, rolling back, I'm sure I'm not mistaken!
1 parent 8f2a98b commit 048dae0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v6.0.0 # DO NOT UPDATE: last version to be compatible with Python 3.6
3+
rev: v5.0.0 # DO NOT UPDATE: last version to be compatible with Python 3.6
4+
# rev: v6.0.0 # OK! we do not update !
45
hooks:
56
- id: check-added-large-files
67
- id: check-case-conflict
@@ -16,7 +17,7 @@ repos:
1617
- id: destroyed-symlinks
1718
# - id: end-of-file-fixer
1819
- id: fix-byte-order-marker
19-
- id: fix-encoding-pragma
20+
- id: fix-encoding-pragma # to remove from rev > v5.0.0
2021
#- id: trailing-whitespace # not ready yet
2122

2223
- repo: https://github.com/PyCQA/flake8
@@ -27,5 +28,11 @@ repos:
2728
language_version: python3
2829
exclude: ^(doc/source|capsul)/sphinxext/
2930

31+
# - repo: https://github.com/asottile/pyupgrade # to add when rev > v5.0.0
32+
# rev: v3.20.0
33+
# hooks:
34+
# - id: pyupgrade
35+
# args: ["--py39-plus"] # Ensures compatibility with Python 3.9+
36+
3037
ci: # configuration for https://pre-commit.ci/
3138
autoupdate_schedule: quarterly # prevent too frequent PRs

0 commit comments

Comments
 (0)