Skip to content

Commit b99b18e

Browse files
committed
Bump ver
1 parent be57284 commit b99b18e

File tree

7 files changed

+210
-197
lines changed

7 files changed

+210
-197
lines changed

.bumper.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.bumper]
2-
current_version = "2025.12.0"
2+
current_version = "2025.12.1"
33
versioning_type = "calver"
44

55
[[tool.bumper.files]]

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33

44
repos:
55
- repo: https://github.com/psf/black-pre-commit-mirror
6-
rev: 25.11.0
6+
rev: 25.12.0
77
hooks:
88
- id: black
99
- repo: https://github.com/pycqa/isort

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
Versions follow [Calendar Versioning](https://calver.org/) (`<YYYY>`.`<MM>`.`<MICRO>`)
33

4+
## [v2025.12.1]
5+
### Added
6+
* #8 Add the `check-eol-cached` hook, which utilizies only the cached EOL information and does not incorporate a date-based check
7+
48
## [v2025.12.0]
59
### Fixed
610
* #6 Fix EOL cache file not being included in source distribution

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,25 @@ Add this to your `.pre-commit-config.yaml`
1111

1212
```yaml
1313
- repo: https://github.com/sco1/pre-commit-python-eol
14-
rev: v2025.12.0
14+
rev: v2025.12.1
1515
hooks:
1616
- id: check-eol
17+
- id: check-eol-cached
1718
```
1819
20+
While both hooks are technically compatible with each other, it's advised to choose a single hook behavior that best fits your needs.
21+
22+
### EOL Status Cache
23+
To avoid requiring network connectivity at runtime, EOL status is cached to [a local JSON file](./pre_commit_python_eol/cached_release_cycle.json) distributed alongside this hook. The cache is updated quarterly & a changed cache will result in a version bump for this hook.
24+
1925
## Hooks
20-
**NOTE:** Only pyproject.toml is currently inspected. It is assumed that project metadata is specified per [PyPA Guidance](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/)
26+
Only `pyproject.toml` is currently inspected. It is assumed that project metadata is specified per [PyPA Guidance](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/)
2127

2228
### `check-eol`
23-
Check `requires-python` against the current Python lifecycle & fail if an EOL version is included.
29+
Check `requires-python` against the current Python lifecycle & fail if an EOL version is included; this includes a date-based check using the system's time for versions that have not yet explicitly been declared EOL.
2430

2531
### `check-eol-cached`
26-
The same as `check-eol`, but deterministic. Caches EOL Python versions, which get updated when
27-
you update the hook.
32+
Check `requires-python` against the current Python lifecycle & fail if an EOL version is included; this hook utilizes only the cached release cycle information.
2833

2934
## Python Version Support
3035
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](https://devguide.python.org/versions/).

pre_commit_python_eol/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "2025.12.0"
1+
__version__ = "2025.12.1"
22
__url__ = "https://github.com/sco1/pre-commit-check-eol"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pre-commit-python-eol"
3-
version = "2025.12.0"
3+
version = "2025.12.1"
44
description = "A pre-commit hook for enforcing supported Python EOL"
55
license = "MIT"
66
license-files = ["LICENSE"]

uv.lock

Lines changed: 192 additions & 188 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)