Skip to content

Commit 57a9bdc

Browse files
authored
ci: Drop EOL Python 3.9 and macos-13 (#948)
1 parent 3e855bb commit 57a9bdc

File tree

6 files changed

+39
-42
lines changed

6 files changed

+39
-42
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,17 +453,17 @@ jobs:
453453
# NOTE: The latest and the lowest supported Pythons are prioritized
454454
# NOTE: to improve the responsiveness. It's nice to see the most
455455
# NOTE: important results first.
456-
- 3.13
457-
- 3.9
456+
- 3.14
458457
# str
459458
- >-
460459
3.10
460+
- 3.13
461461
- 3.12
462462
- 3.11
463463
runner-vm-os:
464464
- ubuntu-24.04
465-
- macos-14
466-
- macos-13
465+
- macos-15
466+
- macos-15-intel
467467
- windows-2025
468468
toxenv:
469469
- pytest

.mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[mypy]
2-
python_version = 3.9
2+
python_version = 3.10
33
color_output = true
44
error_summary = true
55
# IMPORTANT: The file list MUST NOT have a trailing comma after the last entry.

.pre-commit-config.yaml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -121,53 +121,53 @@ repos:
121121
rev: 9f70dc58c23dfcca1b97af99eaeee3140a807c7e # frozen: v1.18.2
122122
hooks:
123123
- id: mypy
124-
alias: mypy-py313
125-
name: MyPy, for Python 3.13
124+
alias: mypy-py314
125+
name: MyPy, for Python 3.14
126126
additional_dependencies:
127127
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
128128
- pytest
129129
- pytest-mock
130130
args:
131-
- --python-version=3.13
132-
- --any-exprs-report=.tox/.tmp/.test-results/mypy--py-3.13
133-
- --cobertura-xml-report=.tox/.tmp/.test-results/mypy--py-3.13
134-
- --html-report=.tox/.tmp/.test-results/mypy--py-3.13
135-
- --linecount-report=.tox/.tmp/.test-results/mypy--py-3.13
136-
- --linecoverage-report=.tox/.tmp/.test-results/mypy--py-3.13
137-
- --lineprecision-report=.tox/.tmp/.test-results/mypy--py-3.13
138-
- --txt-report=.tox/.tmp/.test-results/mypy--py-3.13
131+
- --python-version=3.14
132+
- --any-exprs-report=.tox/.tmp/.test-results/mypy--py-3.14
133+
- --cobertura-xml-report=.tox/.tmp/.test-results/mypy--py-3.14
134+
- --html-report=.tox/.tmp/.test-results/mypy--py-3.14
135+
- --linecount-report=.tox/.tmp/.test-results/mypy--py-3.14
136+
- --linecoverage-report=.tox/.tmp/.test-results/mypy--py-3.14
137+
- --lineprecision-report=.tox/.tmp/.test-results/mypy--py-3.14
138+
- --txt-report=.tox/.tmp/.test-results/mypy--py-3.14
139139
pass_filenames: false
140140
- id: mypy
141-
alias: mypy-py311
142-
name: MyPy, for Python 3.11
141+
alias: mypy-py312
142+
name: MyPy, for Python 3.12
143143
additional_dependencies:
144144
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
145145
- pytest
146146
- pytest-mock
147147
args:
148-
- --python-version=3.11
149-
- --any-exprs-report=.tox/.tmp/.test-results/mypy--py-3.11
150-
- --cobertura-xml-report=.tox/.tmp/.test-results/mypy--py-3.11
151-
- --html-report=.tox/.tmp/.test-results/mypy--py-3.11
152-
- --linecount-report=.tox/.tmp/.test-results/mypy--py-3.11
153-
- --linecoverage-report=.tox/.tmp/.test-results/mypy--py-3.11
154-
- --lineprecision-report=.tox/.tmp/.test-results/mypy--py-3.11
155-
- --txt-report=.tox/.tmp/.test-results/mypy--py-3.11
148+
- --python-version=3.12
149+
- --any-exprs-report=.tox/.tmp/.test-results/mypy--py-3.12
150+
- --cobertura-xml-report=.tox/.tmp/.test-results/mypy--py-3.12
151+
- --html-report=.tox/.tmp/.test-results/mypy--py-3.12
152+
- --linecount-report=.tox/.tmp/.test-results/mypy--py-3.12
153+
- --linecoverage-report=.tox/.tmp/.test-results/mypy--py-3.12
154+
- --lineprecision-report=.tox/.tmp/.test-results/mypy--py-3.12
155+
- --txt-report=.tox/.tmp/.test-results/mypy--py-3.12
156156
pass_filenames: false
157157
- id: mypy
158-
alias: mypy-py39
159-
name: MyPy, for Python 3.9
158+
alias: mypy-py310
159+
name: MyPy, for Python 3.10
160160
additional_dependencies:
161161
- lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report`
162162
- pytest
163163
- pytest-mock
164164
args:
165-
- --python-version=3.9
166-
- --any-exprs-report=.tox/.tmp/.test-results/mypy--py-3.9
167-
- --cobertura-xml-report=.tox/.tmp/.test-results/mypy--py-3.9
168-
- --html-report=.tox/.tmp/.test-results/mypy--py-3.9
169-
- --linecount-report=.tox/.tmp/.test-results/mypy--py-3.9
170-
- --linecoverage-report=.tox/.tmp/.test-results/mypy--py-3.9
171-
- --lineprecision-report=.tox/.tmp/.test-results/mypy--py-3.9
172-
- --txt-report=.tox/.tmp/.test-results/mypy--py-3.9
165+
- --python-version=3.10
166+
- --any-exprs-report=.tox/.tmp/.test-results/mypy--py-3.10
167+
- --cobertura-xml-report=.tox/.tmp/.test-results/mypy--py-3.10
168+
- --html-report=.tox/.tmp/.test-results/mypy--py-3.10
169+
- --linecount-report=.tox/.tmp/.test-results/mypy--py-3.10
170+
- --linecoverage-report=.tox/.tmp/.test-results/mypy--py-3.10
171+
- --lineprecision-report=.tox/.tmp/.test-results/mypy--py-3.10
172+
- --txt-report=.tox/.tmp/.test-results/mypy--py-3.10
173173
pass_filenames: false

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ classifiers = [
2929
'License :: OSI Approved :: MIT License',
3030
'Programming Language :: Python :: 3',
3131
'Programming Language :: Python :: 3 :: Only',
32-
'Programming Language :: Python :: 3.9',
3332
'Programming Language :: Python :: 3.10',
3433
'Programming Language :: Python :: 3.11',
3534
'Programming Language :: Python :: 3.12',
3635
'Programming Language :: Python :: 3.13',
36+
'Programming Language :: Python :: 3.14',
3737
'Programming Language :: Python :: Implementation :: CPython',
3838
'Programming Language :: Python :: Implementation :: PyPy',
3939
]
@@ -43,7 +43,7 @@ dynamic = [
4343
'urls',
4444
'version',
4545
]
46-
requires-python = ">= 3.9"
46+
requires-python = ">= 3.10"
4747

4848
[[project.authors]]
4949
name = 'Anton Babenko'

ruff.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Assume Python 3.9
2-
target-version = "py39"
3-
41
line-length = 79 # To decrease PR diff size
52

63
namespace-packages = ["src/pre_commit_terraform/", "tests/pytest/"]

src/pre_commit_terraform/_types.py

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

33
from argparse import ArgumentParser, Namespace
44
from collections.abc import Callable
5-
from typing import Protocol, Union
5+
from typing import Protocol
66

77
from ._structs import ReturnCode
88

99

10-
ReturnCodeType = Union[ReturnCode, int] # Union instead of pipe for Python 3.9
10+
ReturnCodeType = ReturnCode | int
1111
CLIAppEntryPointCallableType = Callable[[Namespace], ReturnCodeType]
1212

1313

0 commit comments

Comments
 (0)