diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index e50a9828944..6a24c9a1009 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -24,8 +24,7 @@ jobs: strategy: fail-fast: false matrix: - # TODO: add 3.15; relies on libcst which doesn't support 3.15 yet - 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 7b549ea375e..2950db45357 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/CHANGES.md b/CHANGES.md index 3866861d89c..fc096802219 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,10 @@ +- 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 @@ -18,8 +22,6 @@ - Fix `# fmt: skip` being ignored in nested `if` expressions with parenthesized `in` clauses (#4903) - 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/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()