From bf2171cb635f7fbdc75370afdff561e486d5a2a7 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 11 Oct 2026 14:13:44 +0200 Subject: [PATCH 1/2] Raise minimum Python version to 3.11 --- README.md | 2 ++ pyproject.toml | 4 ++-- src/project/task_data_catalog.py | 2 +- src/project/task_local_path.py | 2 +- src/project/task_python_nodes.py | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8f3bcad..84e52da 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,5 @@ This project allows testing all possible interactions between pytask, pytask-parallel and coiled. + +Requires Python 3.11 or newer. diff --git a/pyproject.toml b/pyproject.toml index ff0a7ea..cc9ffb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ dependencies = [ "s3fs>=2024.3.1", ] readme = "README.md" -requires-python = ">= 3.8" +requires-python = ">=3.11" [project.optional-dependencies] coiled = [ @@ -52,7 +52,7 @@ dev-dependencies = [] allow-direct-references = true [tool.ruff] -target-version = "py38" +target-version = "py311" fix = true unsafe-fixes = true diff --git a/src/project/task_data_catalog.py b/src/project/task_data_catalog.py index fa36846..01a5edf 100644 --- a/src/project/task_data_catalog.py +++ b/src/project/task_data_catalog.py @@ -1,8 +1,8 @@ +from typing import Annotated from typing import cast from pytask import PickleNode from pytask import Product -from typing_extensions import Annotated from project.config import BLD from project.config import data_catalog diff --git a/src/project/task_local_path.py b/src/project/task_local_path.py index 49795b4..b367d14 100644 --- a/src/project/task_local_path.py +++ b/src/project/task_local_path.py @@ -1,7 +1,7 @@ from pathlib import Path +from typing import Annotated from pytask import Product -from typing_extensions import Annotated from project.config import BLD diff --git a/src/project/task_python_nodes.py b/src/project/task_python_nodes.py index 7bd593a..c14c668 100644 --- a/src/project/task_python_nodes.py +++ b/src/project/task_python_nodes.py @@ -1,6 +1,7 @@ +from typing import Annotated + from pytask import Product from pytask import PythonNode -from typing_extensions import Annotated from project.config import BLD From c2eebca0edb0197df7bbe3d9a7b6d580c828b8ff Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 11 Oct 2026 14:27:55 +0200 Subject: [PATCH 2/2] chore: update Ruff ignores --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cc9ffb6..a3d9a25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,9 +58,8 @@ unsafe-fixes = true [tool.ruff.lint] extend-ignore = [ - "ANN101", # type annotating self - "ANN102", # type annotating cls "ANN401", # flake8-annotate typing.Any + "CPY001", # Copyright notices are not required. "COM812", # Comply with ruff-format. "ISC001", # Comply with ruff-format. "D",