We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0dc35 commit 1b70d7aCopy full SHA for 1b70d7a
.pre-commit-config.yaml
@@ -37,4 +37,4 @@ repos:
37
- repo: https://github.com/astral-sh/ruff-pre-commit
38
rev: v0.12.2
39
hooks:
40
- - id: ruff
+ - id: ruff-check
pre_commit_python_eol/check_eol.py
@@ -101,6 +101,12 @@ def _get_cached_release_cycle(cache_json: Path) -> list[PythonRelease]:
101
102
103
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
110
with toml_file.open("rb") as f:
111
contents = tomllib.load(f)
112
0 commit comments