Repository navigation
Run autopep8 workflow on Python 3.10 and check the result compiles - #2
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The PEP8 Aggressive workflow runs autopep8 on Python 3.13. On Python 3.12+, autopep8 splits long f-strings across lines:
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)
python -m compileall -q .step after autopep8, so broken code is never committed.Checked
Generated by Claude Code