Skip to content

Commit 1b70d7a

Browse files
committed
Bump deps
1 parent 2a0dc35 commit 1b70d7a

File tree

3 files changed

+329
-308
lines changed

3 files changed

+329
-308
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ repos:
3737
- repo: https://github.com/astral-sh/ruff-pre-commit
3838
rev: v0.12.2
3939
hooks:
40-
- id: ruff
40+
- id: ruff-check

pre_commit_python_eol/check_eol.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ def _get_cached_release_cycle(cache_json: Path) -> list[PythonRelease]:
101101

102102

103103
def check_python_support(toml_file: Path, cache_json: Path = CACHED_RELEASE_CYCLE) -> None:
104+
"""
105+
Check the input TOML's `requires-python` for overlap with EOL Python version(s).
106+
107+
If overlap(s) are present, an exception is raised whose message enumerates all EOL Python
108+
versions supported by the TOML file.
109+
"""
104110
with toml_file.open("rb") as f:
105111
contents = tomllib.load(f)
106112

0 commit comments

Comments
 (0)