Skip to content

Run autopep8 workflow on Python 3.10 and check the result compiles - #1

Merged
Belfagor2005 merged 1 commit into
mainfrom
fix/autopep8-py310
Nov 20, 2026
Merged

Belfagor2005 merged 1 commit into
mainfrom
fix/autopep8-py310

Conversation

@Belfagor2005

Copy link
Copy Markdown
Collaborator

Why

The PEP8 Aggressive workflow runs autopep8 on Python 3.13. On Python 3.12+, autopep8 splits long f-strings across lines:

f"mac={mac}; stb_lang=en; timezone={
    fetch_system_timezone()};"

That is valid on 3.12+ but a SyntaxError on Python 3.11 and older, so the plugin stops loading on receivers with those versions. It already happened in OwnerPlugins/StalkerPortalConverter#4, OwnerPlugins/Filmon#3 and OwnerPlugins/enigma2-plugin-skins-aglare#1. This repo's code is fine today: this is a preventive fix.

Change (workflow only, no code changes)

  • Run autopep8 on Python 3.10, where it cannot produce multi-line f-strings.
  • Add a python -m compileall -q . step after autopep8, so broken code is never committed.

Checked

  • The current code compiles on Python 3.10, so the new step passes.
  • The workflow file is valid YAML.

Generated by Claude Code

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EVc11Hv6rDpu2ehEJGDhWD
@Belfagor2005
Belfagor2005 merged commit 28725b2 into main Nov 20, 2026
6 checks passed
@Belfagor2005
Belfagor2005 deleted the fix/autopep8-py310 branch November 20, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants