Skip to content

Commit d987772

Browse files
committed
refactor
1 parent ff0d526 commit d987772

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pre_commit_python_eol/check_eol.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414

1515
from packaging import specifiers, version
1616

17-
HERE = Path(__file__).parent
18-
CACHED_RELEASE_CYCLE = HERE / "cached_release_cycle.json"
19-
CACHED_EOL_VERSIONS = HERE / "cached_eol_versions.json"
17+
CACHED_RELEASE_CYCLE = Path(__file__).parent / "cached_release_cycle.json"
18+
CACHED_EOL_VERSIONS = Path(__file__).parent / "cached_eol_versions.json"
2019

2120

2221
class EOLPythonError(Exception): ... # noqa: D101
@@ -91,7 +90,7 @@ def to_json(self) -> tuple[str, dict[str, str]]:
9190
}
9291

9392

94-
def _get_cached_release_cycle(cache_json: Path = CACHED_RELEASE_CYCLE) -> list[PythonRelease]:
93+
def _get_cached_release_cycle(cache_json: Path) -> list[PythonRelease]:
9594
"""
9695
Parse the locally cached Python release cycle into `PythonRelease` instance(s).
9796

0 commit comments

Comments
 (0)