Skip to content

Commit 37c3040

Browse files
authored
Add support for Python 3.13 and drop 3.8. (#81)
1 parent 96f6416 commit 37c3040

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
45-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
45+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
4646

4747
steps:
4848
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ repos:
3030
hooks:
3131
- id: ruff
3232
- id: ruff-format
33-
- repo: https://github.com/dosisod/refurb
34-
rev: v2.1.0
35-
hooks:
36-
- id: refurb
3733
- repo: https://github.com/executablebooks/mdformat
3834
rev: 0.7.22
3935
hooks:

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ This is a record of all past pytask-latex releases and what went into them in re
44
chronological order. Releases follow [semantic versioning](https://semver.org/) and all
55
releases are available on [Anaconda.org](https://anaconda.org/conda-forge/pytask-latex).
66

7-
## 0.4.3 - 2024-xx-xx
7+
## 0.4.3 - 2025-06-xx
88

99
- {pull}`75` adds rye.
10+
- {pull}`81` adds support for Python 3.13 and drops support for Python 3.8.
1011

1112
## 0.4.2 - 2023-11-30
1213

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ classifiers = [
1212
"Programming Language :: Python :: 3",
1313
"Programming Language :: Python :: 3 :: Only",
1414
]
15-
requires-python = ">=3.8"
15+
requires-python = ">=3.9"
1616
dependencies = [
1717
"latex-dependency-scanner>=0.1.3",
1818
"pluggy>=1.0.0",
@@ -75,7 +75,6 @@ disallow_untyped_defs = false
7575
ignore_errors = true
7676

7777
[tool.ruff]
78-
target-version = "py38"
7978
fix = true
8079
unsafe-fixes = true
8180

src/pytask_latex/collect.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import warnings
66
from pathlib import Path
77
from subprocess import CalledProcessError
8+
from typing import TYPE_CHECKING
89
from typing import Any
910
from typing import Callable
10-
from typing import Sequence
1111

1212
import latex_dependency_scanner as lds
1313
from pytask import Mark
@@ -33,6 +33,9 @@
3333
from pytask_latex import compilation_steps as cs
3434
from pytask_latex.utils import to_list
3535

36+
if TYPE_CHECKING:
37+
from collections.abc import Sequence
38+
3639

3740
def latex(
3841
*,

src/pytask_latex/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from __future__ import annotations
44

5+
from collections.abc import Sequence
56
from typing import Any
6-
from typing import Sequence
77

88

99
def to_list(scalar_or_iter: Any) -> list[Any]:

0 commit comments

Comments
 (0)