diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 1cecc862671..a52e8faa437 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false 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"] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/pypi_upload.yml b/.github/workflows/pypi_upload.yml index 5b2b80c5058..7e9163c72ac 100644 --- a/.github/workflows/pypi_upload.yml +++ b/.github/workflows/pypi_upload.yml @@ -55,7 +55,7 @@ jobs: run: | { CIBW_BUILD="cp310-*" cibuildwheel --print-build-identifiers --platform linux | pyp 'json.dumps({"only": x, "os": "ubuntu-latest"})' - CIBW_BUILD="cp314-*" cibuildwheel --print-build-identifiers --platform windows | pyp 'json.dumps({"only": x, "os": "windows-latest"})' + CIBW_BUILD="cp315-*" cibuildwheel --print-build-identifiers --platform windows | pyp 'json.dumps({"only": x, "os": "windows-latest"})' } | pyp 'json.dumps(list(map(json.loads, lines)))' > /tmp/matrix env: CIBW_ARCHS_LINUX: x86_64 diff --git a/.github/workflows/release_tests.yml b/.github/workflows/release_tests.yml index e4cb12194b4..7464748e69d 100644 --- a/.github/workflows/release_tests.yml +++ b/.github/workflows/release_tests.yml @@ -26,7 +26,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ["3.12", "3.13", "3.14"] + python-version: ["3.12", "3.13", "3.14", "3.15"] os: [macOS-latest, ubuntu-latest, windows-latest] steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86510d79506..ee8a3acb1e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12.10", "3.13", "3.14", "pypy-3.11"] + python-version: ["3.10", "3.11", "3.12.10", "3.13", "3.14", "3.15", "pypy-3.11"] os: [ubuntu-latest, macOS-latest, windows-latest, windows-11-arm] exclude: # setup-python only supports CPython 3.11+ on arm64 windows diff --git a/CHANGES.md b/CHANGES.md index 141dcd5c64e..e315e591474 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,13 +9,15 @@ +- Python 3.15 support (#5101) +- Add support for unpacking in comprehensions (PEP 798) and for lazy imports (PEP 810), + both new syntactic features in Python 3.15 (#5048) + ### Stable style - Fix crash when an f-string follows a `# fmt: off` comment inside brackets (#5097) -- Add support for unpacking in comprehensions (PEP 798) and for lazy imports (PEP 810), - both new syntactic features in Python 3.15 (#5048) ### Preview style diff --git a/plugin/black.vim b/plugin/black.vim index db6b56646c5..b10e7d66cf5 100644 --- a/plugin/black.vim +++ b/plugin/black.vim @@ -86,6 +86,7 @@ function BlackComplete(ArgLead, CmdLine, CursorPos) \ 'target_version=py312', \ 'target_version=py313', \ 'target_version=py314', +\ 'target_version=py315', \ ] endfunction diff --git a/pyproject.toml b/pyproject.toml index ffa7c784e75..95d5589827d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,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 :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance", ] diff --git a/tests/util.py b/tests/util.py index 26fd5aae720..0acce4bed2b 100644 --- a/tests/util.py +++ b/tests/util.py @@ -34,7 +34,6 @@ TargetVersion.PY37, TargetVersion.PY38, TargetVersion.PY39, - TargetVersion.PY315, } DEFAULT_MODE = black.Mode() diff --git a/tox.ini b/tox.ini index bf4cfd399be..0495e8e930d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] isolated_build = true -envlist = {,ci-}py{310,311,312,313,314,py3},fuzz,run_self,generate_schema +envlist = {,ci-}py{310,311,312,313,314,315,py3},fuzz,run_self,generate_schema [testenv] setenv =