A pre-commit hook for enforcing supported Python EOL.
Add this to your .pre-commit-config.yaml
- repo: https://github.com/sco1/pre-commit-python-eol
rev: v2025.12.0
hooks:
- id: check-eolNOTE: Only pyproject.toml is currently inspected. It is assumed that project metadata is specified per PyPA Guidance
Check requires-python against the current Python lifecycle & fail if an EOL version is included.
The same as check-eol, but deterministic. Caches EOL Python versions, which get updated when
you update the hook.
Starting with Python 3.11, a best attempt is made to support Python versions until they reach EOL, after which support will be formally dropped by the next minor or major release of this package, whichever arrives first. The status of Python versions can be found here.