Skip to content

Commit 5d8e733

Browse files
committed
Drop support for Python 3.9
1 parent 5c1d607 commit 5d8e733

5 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/publication.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@v6
1010
- uses: actions/setup-python@v6
1111
with:
12-
python-version: "3.9"
12+
python-version: "3.10"
1313
- run: python -m pip install --upgrade tox-gh-actions
1414
- env:
1515
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

.github/workflows/validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
8+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
99
steps:
1010
- uses: actions/checkout@v6
1111
- uses: actions/setup-python@v6

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ classifiers = [
1919
"Operating System :: OS Independent",
2020
"Programming Language :: Python",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.9",
2322
"Programming Language :: Python :: 3.10",
2423
"Programming Language :: Python :: 3.11",
2524
"Programming Language :: Python :: 3.12",
@@ -28,7 +27,7 @@ classifiers = [
2827
"Programming Language :: Python :: Implementation :: CPython",
2928
"Topic :: Software Development :: Testing",
3029
]
31-
requires-python = ">=3.9"
30+
requires-python = ">=3.10"
3231
dependencies = [
3332
"filelock>=3.0",
3433
"mypy>=1.0",

src/pytest_mypy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from xdist.workermanage import WorkerController # type: ignore
3535

3636

37-
@dataclass(frozen=True) # compat python < 3.10 (kw_only=True)
37+
@dataclass(frozen=True, kw_only=True)
3838
class MypyConfigStash:
3939
"""Plugin data stored in the pytest.Config stash."""
4040

@@ -299,7 +299,7 @@ def runtest(self) -> None:
299299
raise MypyError(f"mypy exited with status {results.status}.")
300300

301301

302-
@dataclass(frozen=True) # compat python < 3.10 (kw_only=True)
302+
@dataclass(frozen=True, kw_only=True)
303303
class MypyResults:
304304
"""Parsed results from Mypy."""
305305

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
minversion = 4.4
44
isolated_build = true
55
envlist =
6-
py39-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{2.0, 2.x, 3.0, 3.x}
76
py310-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
87
py311-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
98
py312-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
@@ -14,7 +13,6 @@ envlist =
1413

1514
[gh-actions]
1615
python =
17-
3.9: py39-pytest{7.0, 7.x, 8.0, 8.x}-mypy{1.0, 1.x}-xdist{2.0, 2.x, 3.0, 3.x}
1816
3.10: py310-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
1917
3.11: py311-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}
2018
3.12: py312-pytest{7.0, 7.x, 8.0, 8.x, 9.0, 9.x}-mypy{1.0, 1.x, 2.0, 2.x}-xdist{2.0, 2.x, 3.0, 3.x}, static, publish

0 commit comments

Comments
 (0)