Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: isort
name: isort
- repo: https://github.com/pycqa/flake8
rev: 7.2.0
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -35,6 +35,6 @@ repos:
- id: python-check-blanket-type-ignore
- id: python-use-type-annotations
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.8
rev: v0.12.2
hooks:
- id: ruff
- id: ruff-check
6 changes: 6 additions & 0 deletions pre_commit_python_eol/check_eol.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ def _get_cached_release_cycle(cache_json: Path) -> list[PythonRelease]:


def check_python_support(toml_file: Path, cache_json: Path = CACHED_RELEASE_CYCLE) -> None:
"""
Check the input TOML's `requires-python` for overlap with EOL Python version(s).

If overlap(s) are present, an exception is raised whose message enumerates all EOL Python
versions supported by the TOML file.
"""
with toml_file.open("rb") as f:
contents = tomllib.load(f)

Expand Down
Loading