From b1b7a989d7b3fea36f40dec87065e2748531ddab Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 1 Jun 2025 18:55:36 +0200 Subject: [PATCH] To changes. --- .github/workflows/main.yml | 2 +- .pre-commit-config.yaml | 4 ---- CHANGES.md | 3 ++- pyproject.toml | 3 +-- src/pytask_latex/collect.py | 5 ++++- src/pytask_latex/utils.py | 2 +- 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d5e9ec0..2aa60df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c78a042..c27e9fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,10 +30,6 @@ repos: hooks: - id: ruff - id: ruff-format -- repo: https://github.com/dosisod/refurb - rev: v2.1.0 - hooks: - - id: refurb - repo: https://github.com/executablebooks/mdformat rev: 0.7.22 hooks: diff --git a/CHANGES.md b/CHANGES.md index 873c317..b7766da 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,9 +4,10 @@ This is a record of all past pytask-latex releases and what went into them in re chronological order. Releases follow [semantic versioning](https://semver.org/) and all releases are available on [Anaconda.org](https://anaconda.org/conda-forge/pytask-latex). -## 0.4.3 - 2024-xx-xx +## 0.4.3 - 2025-06-xx - {pull}`75` adds rye. +- {pull}`81` adds support for Python 3.13 and drops support for Python 3.8. ## 0.4.2 - 2023-11-30 diff --git a/pyproject.toml b/pyproject.toml index 3db50d2..4a58bf6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", ] -requires-python = ">=3.8" +requires-python = ">=3.9" dependencies = [ "latex-dependency-scanner>=0.1.3", "pluggy>=1.0.0", @@ -75,7 +75,6 @@ disallow_untyped_defs = false ignore_errors = true [tool.ruff] -target-version = "py38" fix = true unsafe-fixes = true diff --git a/src/pytask_latex/collect.py b/src/pytask_latex/collect.py index 95d76ec..33db53a 100644 --- a/src/pytask_latex/collect.py +++ b/src/pytask_latex/collect.py @@ -5,9 +5,9 @@ import warnings from pathlib import Path from subprocess import CalledProcessError +from typing import TYPE_CHECKING from typing import Any from typing import Callable -from typing import Sequence import latex_dependency_scanner as lds from pytask import Mark @@ -33,6 +33,9 @@ from pytask_latex import compilation_steps as cs from pytask_latex.utils import to_list +if TYPE_CHECKING: + from collections.abc import Sequence + def latex( *, diff --git a/src/pytask_latex/utils.py b/src/pytask_latex/utils.py index 134f926..8fc1ab8 100644 --- a/src/pytask_latex/utils.py +++ b/src/pytask_latex/utils.py @@ -2,8 +2,8 @@ from __future__ import annotations +from collections.abc import Sequence from typing import Any -from typing import Sequence def to_list(scalar_or_iter: Any) -> list[Any]: