From 3270352a43216decf84261799528a697c6ba9a1b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 22:15:07 +0100 Subject: [PATCH] Run autopep8 workflow on Python 3.10 and check the result compiles On Python 3.12+ autopep8 splits long f-strings across lines. That is a SyntaxError on receivers running Python 3.11 or older, and it already broke StalkerPortalConverter, Filmon and the Aglare skin. Run autopep8 on Python 3.10, where it cannot do that, and compile the result before committing it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EVc11Hv6rDpu2ehEJGDhWD --- .github/workflows/flake8.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index a9da50c..a7262a6 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -17,10 +17,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + # Run autopep8 on the oldest Python the plugin supports. On Python 3.12+ + # autopep8 splits long f-strings across lines, which is a SyntaxError on + # receivers running Python 3.11 or older. - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.13" + python-version: "3.10" - name: Install linters run: | @@ -35,6 +38,10 @@ jobs: run: | autopep8 . --in-place --recursive --aggressive --aggressive + - name: Check the fixed code still compiles + run: | + python -m compileall -q . + - name: Configure Git identity run: | git config --global user.email "actions@github.com"