From 452ab16d21a6565c3ceb9a0e4dd78f7f6fe5e4dd Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 26 Sep 2025 18:48:13 +0200 Subject: [PATCH 1/3] GitHub Actions: Test on Python 3.14 release candidate 3 Python v3.14 -- October 7th * https://www.python.org/download/pre-releases * https://www.python.org/downloads/release/python-3140rc3 * https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#allow-pre-releases --- .github/workflows/ci.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3d9f11..e1cab4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,11 @@ jobs: pyright: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: + python-version: 3.x cache: pip - name: Install typing dependencies run: pip install -r requirements-typing.txt @@ -30,14 +31,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] fail-fast: false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install dependencies run: python -m pip install --upgrade pip setuptools tox - name: Run tests with flake8 @@ -50,11 +52,11 @@ jobs: strategy: fail-fast: false steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.13 - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - name: Set up Python + uses: actions/setup-python@v6 with: - python-version: 3.13 + python-version: 3.x - name: Install dependencies run: | python -m pip install --upgrade pip setuptools tox @@ -67,9 +69,11 @@ jobs: needs: [pyright, test] if: github.repository == 'python-trio/flake8-async' && github.ref == 'refs/heads/main' steps: - - uses: actions/checkout@v4 - - name: Set up Python 3 - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - name: Set up Python + uses: actions/setup-python@v6 + with: + python-version: 3.x - name: Install tools run: python -m pip install --upgrade build pip setuptools wheel twine gitpython - name: Upload new release From 75ff1dbb59066dca810214c8ce86d43f86859a4b Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 31 Oct 2025 17:47:07 +0100 Subject: [PATCH 2/3] try finally return in async104.py --- tests/eval_files/async104.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/eval_files/async104.py b/tests/eval_files/async104.py index 8b845c2..9fedfa5 100644 --- a/tests/eval_files/async104.py +++ b/tests/eval_files/async104.py @@ -1,4 +1,7 @@ # ARG --enable=ASYNC103,ASYNC104 +import sys + + try: ... # raise different exception @@ -104,7 +107,8 @@ def foo2(): else: return # type: ignore[unreachable] # error: 12 finally: - return # error: 12 + if sys.version_info < (3, 14): + return # error: 12 # don't avoid re-raise with continue/break From e8fa5222c96b5e5cb3af878bf794ff103001637a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 16:47:51 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/eval_files/async104.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/eval_files/async104.py b/tests/eval_files/async104.py index 9fedfa5..d358ffa 100644 --- a/tests/eval_files/async104.py +++ b/tests/eval_files/async104.py @@ -1,7 +1,6 @@ # ARG --enable=ASYNC103,ASYNC104 import sys - try: ... # raise different exception