Skip to content

Commit c34d1b8

Browse files
[pre-commit.ci] pre-commit autoupdate (#2)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pycqa/flake8: 7.2.0 → 7.3.0](PyCQA/flake8@7.2.0...7.3.0) - [github.com/astral-sh/ruff-pre-commit: v0.11.8 → v0.12.2](astral-sh/ruff-pre-commit@v0.11.8...v0.12.2) * Bump deps --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: S. Co1 <sco1.git@gmail.com>
1 parent bd13fa0 commit c34d1b8

File tree

3 files changed

+331
-310
lines changed

3 files changed

+331
-310
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: isort
1313
name: isort
1414
- repo: https://github.com/pycqa/flake8
15-
rev: 7.2.0
15+
rev: 7.3.0
1616
hooks:
1717
- id: flake8
1818
additional_dependencies:
@@ -35,6 +35,6 @@ repos:
3535
- id: python-check-blanket-type-ignore
3636
- id: python-use-type-annotations
3737
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: v0.11.8
38+
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)