Skip to content

Commit a6ed26b

Browse files
authored
Add support for Python 3.14 (#633)
1 parent 277786a commit a6ed26b

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed

.github/workflows/cache_ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
ARTIFACT_NAME: cleanup_cache
1919
ALL_VENV_PREFIXES: venv, venv-base, pre-commit
20-
ALL_PYTHON_VERSIONS: 3.9, 3.10, 3.11, 3.12, 3.13
20+
ALL_PYTHON_VERSIONS: 3.9, 3.10, 3.11, 3.12, 3.13, 3.14
2121
steps:
2222
- name: Download workflow artifact
2323
id: download-artifact

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
runs-on: ubuntu-latest
181181
strategy:
182182
matrix:
183-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
183+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
184184
outputs:
185185
python-key: ${{ steps.generate-python-key.outputs.key }}
186186
steps:
@@ -191,6 +191,7 @@ jobs:
191191
uses: actions/[email protected]
192192
with:
193193
python-version: ${{ matrix.python-version }}
194+
allow-prereleases: true
194195
check-latest: true
195196
- name: Generate partial Python venv restore key
196197
id: generate-python-key

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ Set the minimum Python syntax version to **3.12**. (Default: **3.9**)
154154
**`--py313-plus`**
155155
Set the minimum Python syntax version to **3.13**. (Default: **3.9**)
156156

157+
**`--py314-plus`**
158+
Set the minimum Python syntax version to **3.14**. (Default: **3.9**)
159+
157160

158161
## License
159162
This Project is licensed under the MIT license.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
2223
"Topic :: Software Development",
2324
]
2425
requires-python = ">=3.9"

python_typing_update/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ async def async_main(argv: list[str] | None = None) -> int:
139139
'--py313-plus',
140140
action='store_const', dest='min_version', const=(3, 13),
141141
)
142+
group_py_version.add_argument(
143+
'--py314-plus',
144+
action='store_const', dest='min_version', const=(3, 14),
145+
)
142146

143147
argv = argv or sys.argv[1:]
144148
args = parser.parse_args(argv)

tests/test_main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ async def test_main(
118118
pytest.param(['--py311-plus']),
119119
pytest.param(['--py312-plus']),
120120
pytest.param(['--py313-plus']),
121+
pytest.param(['--py314-plus']),
121122
),
122123
)
123124
async def test_py_version(

0 commit comments

Comments
 (0)