Skip to content

Commit f5d8cf0

Browse files
authored
chore!: raise minimum Python version to 3.11 (#9)
* Raise minimum Python version to 3.11 * chore: update Ruff ignores
1 parent 81dd528 commit f5d8cf0

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
This project allows testing all possible interactions between pytask, pytask-parallel
44
and coiled.
5+
6+
Requires Python 3.11 or newer.

‎pyproject.toml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies = [
1111
"s3fs>=2024.3.1",
1212
]
1313
readme = "README.md"
14-
requires-python = ">= 3.8"
14+
requires-python = ">=3.11"
1515

1616
[project.optional-dependencies]
1717
coiled = [
@@ -52,15 +52,14 @@ dev-dependencies = []
5252
allow-direct-references = true
5353

5454
[tool.ruff]
55-
target-version = "py38"
55+
target-version = "py311"
5656
fix = true
5757
unsafe-fixes = true
5858

5959
[tool.ruff.lint]
6060
extend-ignore = [
61-
"ANN101", # type annotating self
62-
"ANN102", # type annotating cls
6361
"ANN401", # flake8-annotate typing.Any
62+
"CPY001", # Copyright notices are not required.
6463
"COM812", # Comply with ruff-format.
6564
"ISC001", # Comply with ruff-format.
6665
"D",

‎src/project/task_data_catalog.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
from typing import Annotated
12
from typing import cast
23

34
from pytask import PickleNode
45
from pytask import Product
5-
from typing_extensions import Annotated
66

77
from project.config import BLD
88
from project.config import data_catalog

‎src/project/task_local_path.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from pathlib import Path
2+
from typing import Annotated
23

34
from pytask import Product
4-
from typing_extensions import Annotated
55

66
from project.config import BLD
77

‎src/project/task_python_nodes.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from typing import Annotated
2+
13
from pytask import Product
24
from pytask import PythonNode
3-
from typing_extensions import Annotated
45

56
from project.config import BLD
67

0 commit comments

Comments
 (0)