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..a3d9a25 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,15 +52,14 @@ dev-dependencies = [] allow-direct-references = true [tool.ruff] -target-version = "py38" +target-version = "py311" fix = true 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", 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