diff --git a/pre_commit_python_eol/bump_cache.py b/pre_commit_python_eol/bump_cache.py index a024806..9132ae5 100644 --- a/pre_commit_python_eol/bump_cache.py +++ b/pre_commit_python_eol/bump_cache.py @@ -17,9 +17,7 @@ f"{platform.python_implementation()}/{platform.python_version()}" ) -CACHE_SOURCE = ( - "https://raw.githubusercontent.com/python/devguide/refs/heads/main/include/release-cycle.json" -) +CACHE_SOURCE = "https://peps.python.org/api/release-cycle.json" LOCAL_CACHE = Path("./cached_release_cycle.json") diff --git a/pre_commit_python_eol/check_eol.py b/pre_commit_python_eol/check_eol.py index 06aa4b4..f07e41a 100644 --- a/pre_commit_python_eol/check_eol.py +++ b/pre_commit_python_eol/check_eol.py @@ -72,8 +72,8 @@ def from_json(cls, ver: str, metadata: dict[str, t.Any]) -> PythonRelease: """ Create a `PythonRelease` instance from the provided JSON components. - JSON components are assumed to be of the format provided by the Python Devguide: - https://github.com/python/devguide/blob/main/include/release-cycle.json + JSON components are assumed to be of the format provided by the Python PEPs API: + https://peps.python.org/api/release-cycle.json """ return cls( python_ver=version.Version(ver),