Skip to content

Commit 2ebf58e

Browse files
committed
fix: move cached_release_cycle.json to within the package
1 parent 76d57cf commit 2ebf58e

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

pre_commit_python_eol/bump_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919

2020
CACHE_SOURCE = "https://peps.python.org/api/release-cycle.json"
21-
LOCAL_CACHE = Path("./cached_release_cycle.json")
21+
LOCAL_CACHE = Path("./pre_commit_python_eol/cached_release_cycle.json")
2222

2323

2424
def bump_cache() -> None:

cached_release_cycle.json renamed to pre_commit_python_eol/cached_release_cycle.json

File renamed without changes.

pre_commit_python_eol/check_eol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from packaging import specifiers, version
1616

17-
CACHED_RELEASE_CYCLE = Path("./cached_release_cycle.json")
17+
CACHED_RELEASE_CYCLE = Path(__file__).parent / "cached_release_cycle.json"
1818

1919

2020
class EOLPythonError(Exception): ... # noqa: D101

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)