diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 82b1bf8e..57a21692 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -137,7 +137,7 @@ jobs: runs-on: *runs-on-ubuntu strategy: matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"] outputs: python-key: ${{ steps.generate-python-key.outputs.key }} steps: diff --git a/README.md b/README.md index 4146560d..2ead89e4 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,9 @@ Set the minimum Python syntax version to **3.13**. (Default: **3.10**) **`--py314-plus`** Set the minimum Python syntax version to **3.14**. (Default: **3.10**) +**`--py315-plus`** +Set the minimum Python syntax version to **3.15**. (Default: **3.10**) + ## License This Project is licensed under the MIT license. diff --git a/pyproject.toml b/pyproject.toml index 0f05309e..3b5b642d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Topic :: Software Development", ] requires-python = ">=3.10" diff --git a/python_typing_update/__main__.py b/python_typing_update/__main__.py index 7465dad8..81d40d91 100644 --- a/python_typing_update/__main__.py +++ b/python_typing_update/__main__.py @@ -126,6 +126,10 @@ async def async_main(argv: list[str] | None = None) -> int: '--py314-plus', action='store_const', dest='min_version', const=(3, 14), ) + group_py_version.add_argument( + '--py315-plus', + action='store_const', dest='min_version', const=(3, 15), + ) argv = argv or sys.argv[1:] args = parser.parse_args(argv) diff --git a/tests/test_main.py b/tests/test_main.py index 19d99a1c..19826c88 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -111,6 +111,7 @@ async def test_main( pytest.param(['--py312-plus']), pytest.param(['--py313-plus']), pytest.param(['--py314-plus']), + pytest.param(['--py315-plus']), ), ) async def test_py_version(